RenderSchedule.ScriptBuilder Class
Assembles the JSON representation for a new RenderSchedule.Script. Ensure that entries on any given element timeline are added chronologically. As an extremely simple example, the following code produces a script that changes the color of a single element:
Methods
Name | Description | |
---|---|---|
constructor(): RenderSchedule.ScriptBuilder | ||
addModelTimeline(modelId: string): RenderSchedule.ModelTimelineBuilder | Add a new RenderSchedule.ModelTimeline to be applied to the specified model. | |
finish(): RenderSchedule.ScriptProps | Obtain the JSON representation of the RenderSchedule.Script produced by this builder. |
Defined in
- core/common/src/RenderSchedule.ts Line 1397
Last Updated: 20 June, 2023