Preparing search index...

    Entity that carries a spatial transform, representing position, rotation, and scale in the scene.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;
    const rootObjects = scene.rootSceneObjects;

    for (const obj of rootObjects) {
    const local: Editor.Model.TransformEntity = obj.localTransform;
    console.log(`Object "${obj.name}" local transform:`);
    console.log(` position: ${local.position}`);
    console.log(` rotation: ${local.rotation}`);
    console.log(` scale: ${local.scale}`);
    }

    if (rootObjects.length === 0) {
    console.log('No root scene objects — cannot show TransformEntity.');
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: Uuid

    The unique id of the entity.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    position: vec3

    World or local position of the entity as a vec3.

    rotation: vec3

    World or local rotation of the entity as Euler angles vec3.

    scale: vec3

    World or local scale of the entity as a vec3.

    type: string

    The entity's type.

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean