About 7,000,000 results
Open links in new tab
  1. Unity - Manual: Inspector-configurable custom events

    Unity provides the UnityEvent API as a Unity-specific alternative to standard C# events and delegates. The main advantage of Unity events over standard C# events is that Unity events …

  2. Events in custom inspector - Questions & Answers - Unity

    Jun 21, 2020 · I’m trying to write a custom inspector that includes some UnityEvents. So far I’ve gotten a UnityEvent to display in the inspector using the following code (appropriate using tags …

  3. How to write event handler to setup listeners in the inspector?

    Dec 6, 2018 · I need to write a script that will call methods in another scripts on key events. How to write it to I could specify event type (i.e. using custom enum), game object, script, method …

  4. unity - How do you pass arguments with UnityEvents? - Game …

    Apr 19, 2018 · Like this in the inspector it will show up to select a dynamic gameObject, which is the one that will be passed on from wherever you're going to be invoking the event: …

  5. How to reference the inspector variable for a UnityEvent<T>? - Unity

    Mar 31, 2022 · This script exposes two events in the inspector called eventA and eventB. eventA is just an ordinary event without any arguments while eventB is an event that takes a string …

  6. Manual: Create a Custom Inspector - Unity

    To create a custom Inspector, first define a custom class that inherits from a MonoBehaviour. The custom class represents a simple car with several properties. Create a project in Unity with …

  7. Unity 3d script adding functions as trigger on Inspector window

    May 24, 2016 · I have defined three functions (OnReticleEnter (),Exit () and hover ()) in the script and attached with a game object: // Custom reticle events. public GameObject gOBJ; void …

  8. unity - How to display custom UnityEvents in the editor? - Game ...

    Apr 13, 2017 · The purpose of inheriting from the UnityEvent type is to get rid of the generic type and be able to serialize it in order to be shown in the inspector. Your event is "designed" to …

  9. Custom Event Handler in Inspector? - Unity Discussions

    Jun 11, 2015 · @sotirosn It works using Custom inspector. You just have to use serialized property EditorGUILayout.PropertyField (eventTest_Prop); The Editor Script should looks like …

  10. Manual: Inspector-configurable custom events - Unity

    Unity provides the UnityEvent API as a Unity-specific alternative to standard C# events and delegates. The main advantage of Unity events over standard C# events is that Unity events …

  11. Some results have been removed
Refresh