15 [Serializable]
private class IntegerUnityEvent : UnityEvent<int> { }
17 [SerializeField]
private IntegerUnityEvent componentValueToSet =
default;
20 protected override void OnChange(Emitter emitter) => componentValueToSet.Invoke(Asset.
Value);
23 [MenuItem(
"Component/CustomAssets/Integer Driver")]
private static void AddConnector() =>
24 Selection.activeTransform.gameObject.AddComponent<
IntegerDriver>();
virtual T Value
For safe(ish) access to the contents field
WithEmitter AssetToMonitor
Used to classes that have a listener can get back the Custom Asset that triggered it ...
Common code for all event listener MonoBehaviours. It registers and deregisters the listener with the...
Common code for all event listeners. It registers and deregisters the listener with the channel ...