Summary
Register a callback that will be invoked when the time crosses the current length.
The callback will be invoked once per loop even if the animation is visually not looping.
Syntax
public FlexMotionLayer OnComplete<T>(T caller, Action<T, FlexMotionLayer> callback) where T : class
Type Parameters
Name |
Description |
T |
The class type of the caller. |
Parameters
Name |
Type |
Description |
caller |
T |
The caller of this method which will be part of the callback alongside the layer. |
callback |
Action<T, FlexMotionLayer> |
The method to be called when the time condition will be met. |
Return Value
Type |
Description |
FlexMotionLayer |
The same instance of FlexMotionLayer , allowing chained method calls. |