Cluster Creator Kit Script Reference
    Preparing search index...

    Class WorldItemTemplateIdItem

    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.

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

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

    Constructors

    Constructors

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

      Parameters

      • id: string

        Id set in WorldItemTemplateList

      Returns WorldItemTemplateId