Summary
Registers a callback that will be invoked once when the provided normalized time is reached.
Please consider using
OnNormalizedTime<T>(T, float, Action<T, FlexMotionLayer>)
instead to prevent possible closure allocations.
Syntax
public FlexMotionLayer OnNormalizedTime(float normalizedTime, Action<FlexMotionLayer> callback)
Parameters
Name | Type | Description |
---|---|---|
normalizedTime | float | The normalized time to reach for the callback to be invoked. |
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. |