create

abstract fun create(blockType: DesignBlockType): DesignBlock

Create a new block.

New text and graphic blocks use clip/defaultDurationValue (5 seconds by default). Duration is provisional until an engine update after placement and media loading initializes it once using clip/initialDurationMode. Waiting for forceLoadAVResource alone does not guarantee that update has run. An explicit setDuration call takes precedence. Finish parent and time-offset placement before that update. Custom asset callbacks that defer placement across updates must set the final duration explicitly.

Return

the created blocks handle.

Parameters

blockType

the type of the block that shall be created.


abstract fun create(blockType: String): DesignBlock

Deprecated

Use type safe overload instead.

Replace with

this.create(DesignBlockType.)

Create a new block.

New text and graphic blocks use clip/defaultDurationValue (5 seconds by default). Duration is provisional until an engine update after placement and media loading initializes it once using clip/initialDurationMode. Waiting for forceLoadAVResource alone does not guarantee that update has run. An explicit setDuration call takes precedence. Finish parent and time-offset placement before that update. Custom asset callbacks that defer placement across updates must set the final duration explicitly.

Return

the created blocks handle.

Parameters

blockType

the type of the block that shall be created.