Preparing search index...

    Context scoped to a set of scene objects, providing access to the current object selection.

        // Register a context action that inspects the ObjectContext selection.
    const registry = this.pluginSystem.findInterface(
    Editor.IContextActionRegistry.interfaceId
    ) as Editor.IContextActionRegistry;
    if (Editor.isNull(registry)) {
    console.log('IContextActionRegistry not available');
    return;
    }

    const guard = registry.registerAction((ctx: Editor.IContext) => {
    const objCtx = ctx as Editor.Model.ObjectContext;
    for (const obj of objCtx.selection) {
    console.log('Selected SceneObject:', obj.name);
    }
    return undefined as unknown as Editor;
    });
    this.guards.push(guard);
    console.log('Object context action registered');

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    selection: SceneObject[]

    Read-only array of currently selected SceneObjects in this context.

    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