Wrapping struct around changed behaviours which allows you to load old and new values.
More...
|
void | LoadNew () |
| Sets the Behaviour to represent the changed state after the triggering change occurred. This is the already default state of the behaviour when an OnChanged callback occurs, and only needs to be called to revert from a previous LoadOld() call in your changed callback handler. More...
|
|
void | LoadOld () |
| Sets the changed behaviour to represent the previous state before the triggering change occurred. To get previous values, call this before getting networked properties of Behaviour. More...
|
|
void | Rescan () |
| Tells the OnChanged callback system that this object needs to be re-scanned for changes after the current change scan is completed. Call this is you are changing data inside an OnChange callback and can't wait for the next tick to execute until the callback is triggered. More...
|
|
|
T | _behaviour |
|
int * | _new |
|
int * | _old |
|
bool | _rescan |
|
|
T | Behaviour [get] |
| The wrapped changed behaviour instance. The behaviour will have the new networked values. Previous values can be obtained by calling changed.Behaviour.LoadOld(), then accessing the networked properties of changed.behaviour. More...
|
|
Wrapping struct around changed behaviours which allows you to load old and new values.
◆ LoadNew()
Sets the Behaviour to represent the changed state after the triggering change occurred. This is the already default state of the behaviour when an OnChanged callback occurs, and only needs to be called to revert from a previous LoadOld() call in your changed callback handler.
◆ LoadOld()
Sets the changed behaviour to represent the previous state before the triggering change occurred. To get previous values, call this before getting networked properties of Behaviour.
◆ Rescan()
Tells the OnChanged callback system that this object needs to be re-scanned for changes after the current change scan is completed. Call this is you are changing data inside an OnChange callback and can't wait for the next tick to execute until the callback is triggered.
◆ Behaviour
The wrapped changed behaviour instance. The behaviour will have the new networked values. Previous values can be obtained by calling changed.Behaviour.LoadOld(), then accessing the networked properties of changed.behaviour.