Summary
Registers a callback that will be invoked once every update.
Please consider using
OnUpdate<T>(T, Action<T, FlexMotionLayer>)
instead to prevent possible closure allocations.
Syntax
public FlexMotionLayer OnUpdate(Action<FlexMotionLayer> callback)
Parameters
Name | Type | Description |
---|---|---|
callback | Action |
The method to be called when the time condition will be reached. |
Return Value
Type | Description |
---|---|
FlexMotionLayer | The same instance of FlexMotionLayer , allowing chained method calls. |