Preparing search index...

    An entity which can be turned into a prefab, such as Editor.Model.SceneObject.

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

    // Prefabable is the base class for SceneObject and Component.
    // Walk scene objects — each is a Prefabable.
    const allObjects = scene.sceneObjects;
    for (const obj of allObjects) {
    const components = obj.getComponentsCount();
    console.log(`SceneObject "${obj.name}" has ${components} component(s)`);
    }

    // Static helpers
    const typeName = Editor.Model.Prefabable.getTypeName();
    console.log('Prefabable typeName:', typeName);

    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.

    type: string

    The entity's type.

    Methods

    • Returns the name of this object's type.

      Returns string

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

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object refers to the same instance as the given object.

      Parameters

      Returns boolean