Class EntityBuilder

Constructors

Methods

  • Adds an entity to the builder with a specified start time and duration.

    Parameters

    • entity: IEntity

      The entity to add.

    • OptionalstartTime: number

      The start time of the entity within the scene (in milliseconds).

    • Optionalduration: number

      The duration of the entity within the scene (in milliseconds).

    Returns EntityBuilder

    The EntityBuilder instance for chaining.

  • Adds an entity from the graph by its name.

    Parameters

    • entityName: string

      The name of the entity in the graph.

    • OptionalstartTime: number

      The start time of the entity within the scene (in milliseconds).

    • Optionalduration: number

      The duration of the entity within the scene (in milliseconds).

    Returns EntityBuilder

    The EntityBuilder instance for chaining.