Preparing search index...

    Entity subclass representing the structural organization of entities within a scene.

        // EntityStructure is the base class for structural sub-objects owned by
    // components and assets (e.g. CameraClearColor, SurfaceOptions, AnimationClip).
    // You don't construct one — you read/mutate it through its owner.
    const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;

    const obj = scene.createSceneObject('CameraObj');
    const camera = obj.addComponent('Camera') as Editor.Components.Camera;

    // camera.clearColor is a CameraClearColor, which extends EntityStructure.
    const clearColor: Editor.Model.EntityStructure = camera.clearColor;
    console.log('EntityStructure typeName:', clearColor.getTypeName());

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    colorBits: number
    compressionLevel: number
    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.

    normalBits: number
    positionBits: number
    texcoordBits: number
    type: string

    The entity's type.

    Methods

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

      Parameters

      • type: string

      Returns boolean