This represents the ID used to refer to a World Item Template registered in the World Item Template List. By passing it to ClusterScript.createItem, you can create a world item from the world item template.

Example

const position = $.getPosition();
position.y += 1.0;
const rotation = $.getRotation();

const worldItemTemplateId = new WorldItemTemplateId("marker");
$.createItem(worldItemTemplateId, position, rotation);

Hierarchy

  • WorldItemTemplateId

Constructors

Constructors

  • Beta

    Generates an instance that represents an ID for referencing a world item template.

    Parameters

    • id: string

      Id set in WorldItemTemplateList

    Returns WorldItemTemplateId

Generated using TypeDoc