Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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:
    815
    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:
    815
    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:
    815
    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.