Q:

how to make an onClick in the inspector unity

  using UnityEngine;  
  using UnityEngine.Events;
  
  public class EventTest : MonoBehaviour {
  
  [Serializable]     
  public class MyEventType : UnityEvent { }      
  public MyEventType OnEvent;
  
  }
0

New to Communities?

Join the community