Summary
Subscribes a callback to the completed event which is triggered when the time crosses the current length.
The callback will be invoked once per loop even if the animation is visually not looping.
Please consider using
OnComplete<T>(T, Action<T, FlexMotionLayer>)
instead to prevent possible closure allocations.
Syntax
public FlexMotionLayer OnComplete(FlexMotionLayer.FlexMotionLayerEventHandler callback)
Parameters
Name | Type | Description |
---|---|---|
callback | FlexMotionLayer |
The method to called when the event will be triggered. |
Return Value
Type | Description |
---|---|
FlexMotionLayer | The same instance of FlexMotionLayer , allowing chained method calls. |