This component lets you very easily have one property drive the value of another property. To do so, drag the object with the property you want to "read" from into the Emitter Property slot, then select the component the property is on, and finally the property itself. Then drag the object with the property you want to "write" to into the ReceiverProperty slot, and pick the property you want to drive with the emitter's value.
More...
|
virtual void | Awake () |
| On Awake we initialize both properties More...
|
|
virtual void | Update () |
| On Update we emit our value to our receiver More...
|
|
virtual void | EmitValue () |
| If needed, reads the current level of the emitter and sets it to the receiver More...
|
|
This component lets you very easily have one property drive the value of another property. To do so, drag the object with the property you want to "read" from into the Emitter Property slot, then select the component the property is on, and finally the property itself. Then drag the object with the property you want to "write" to into the ReceiverProperty slot, and pick the property you want to drive with the emitter's value.
◆ Awake()
virtual void MoreMountains.Tools.MMEmmiterReceiver.Awake |
( |
| ) |
|
|
protectedvirtual |
On Awake we initialize both properties
◆ EmitValue()
virtual void MoreMountains.Tools.MMEmmiterReceiver.EmitValue |
( |
| ) |
|
|
protectedvirtual |
If needed, reads the current level of the emitter and sets it to the receiver
◆ OnValueChangeDelegate()
delegate void MoreMountains.Tools.MMEmmiterReceiver.OnValueChangeDelegate |
( |
| ) |
|
a delegate to handle value changes
◆ Update()
virtual void MoreMountains.Tools.MMEmmiterReceiver.Update |
( |
| ) |
|
|
protectedvirtual |
On Update we emit our value to our receiver
◆ _levelLastFrame
float MoreMountains.Tools.MMEmmiterReceiver._levelLastFrame |
|
protected |
◆ EmitterProperty
the property whose value you want to read and to have drive the ReceiverProperty's value
◆ Emitting
bool MoreMountains.Tools.MMEmmiterReceiver.Emitting = true |
◆ OnValueChange
what to do on value change
◆ ReceiverProperty
the property whose value you want to be driven by the EmitterProperty's value
The documentation for this class was generated from the following file: