Scripting API
‚ú®BlocksModule

BlocksModule

The BlocksModule class provides methods for interacting with the Blocks in your effect.

Properties

This module exposes no properties.

Methods

MethodDescription
instantiate
instantiate(prototypeName: string, initialState: {[key: string]: any}): Promise<BlockSceneRoot>


Instantiate a Block asynchronously from a prototype.
Creation of Blocks is bound to the same set of guidelines as Scene.create().
Any Block object extends SceneObjectBase, inheriting all base properties
and allowing to use it as a child of any other object.
Please note, new Blocks are assigned a globally unique identifier.

Classes

This module exposes no classes.

Was this article helpful?