Editor Scripting API
    Preparing search index...

    Popup window that allows the user to choose specific objects in the Scene hierarchy, or assets in the Asset Browser.

    // Get access to the project's model component 
    const model = this.pluginSystem.findInterface(Editor.IModel);
    const project = model.project;

    // Get access to the picker component
    const refPicker = this.pluginSystem.findInterface(Editor.IEntityPicker);

    // Open a picker
    const type = "SceneObject"

    // or Asset, etc.
    refPicker.requestPicker(type, (pickedReplacementUid) => {
    console.log(pickedReplacementUid);
    })

    // List assets in project
    const assetManager = project.assetManager;
    assetManager.assets.forEach( asset => {
    console.log(asset.id);
    })

    // List objects in project's scene
    const scene = project.scene;
    scene.sceneObjects.forEach( obj => {
    console.log(obj.id);
    })

    Hierarchy (View Summary)

    Index

    Properties

    interfaceId: InterfaceId

    Methods

    • Beta

      Parameters

      • entityType: string
      • callback: (arg1: Entity) => void

      Returns void