Set Instance Timeline Icon Set Instance Timeline

This action assigns a timeline from the Asset Browser to the instance. You give the timeline to assign , and then you can choose to have the timeline loop when it reaches the last moment (the next frame after the last moment is run will loop back to the first moment of the timeline again) as well as whether to start the timeline immediately or not. If you do not start the timeline immediately you can use the action Set Timeline State to start it later in another event or script.

 

Action Syntax:

Set Instance Timeline Action

Arguments:

ArgumentDescription
TimelineThe timeline resource to assign to an instance
LoopFlag to have the timeline loop after the last moment (default is flagged)
Start TimelineFlag to have the timeline start immediately or not (default is flagged)

 

Example:

Set Instance Timeline ExampleThe above action block code will assign a timeline to the instance calling the actions as well as set the initial moment to 10 and then the timeline speed to 2.