Search Unity

Bug Unity Event not drawing in inspector

Discussion in 'Editor & General Support' started by flashframe, Jan 25, 2023.

  1. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    798
    Hi, not sure if this is a bug or if I'm doing something wrong. I'm working in Unity 2021.3.5f1

    This script:

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEngine.Events;
    3.  
    4. public class UnityEventTest : MonoBehaviour
    5. {
    6.     public UnityEvent testEvent;
    7. }
    8.  
    Looks like this in the inspector:

    upload_2023-1-25_14-54-59.png

    I've got the inspector set to Normal view (not debug).

    Any ideas? Thanks!
     
  2. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    798
    Of course, it only occurred to me to try this in an empty project after I posted. It's working fine there, so must be something specific to my project.
     
  3. flashframe

    flashframe

    Joined:
    Feb 10, 2015
    Posts:
    798
    It was an asset from the asset store which is installed in my project, but not actually being used yet. Solved by removing said asset. Have contacted the creator to hopefully resolve.