11 [SerializeField]
private UnityEvent componentValueToSet =
default;
14 protected override void OnChange(Emitter emitter) => componentValueToSet.Invoke();
17 [MenuItem(
"Component/CustomAssets/Trigger Driver")]
private static void AddConnector() =>
18 Selection.activeTransform.gameObject.AddComponent<
TriggerDriver>();
Common code for all event listener MonoBehaviours. It registers and deregisters the listener with the...
Trigger a component function directly from a custom asset