Editor Scripting API
    • Finds or creates an asset in the asset manager.

      Parameters

      • assetManager: AssetManager

        The asset manager instance.

      • assetAbsPath: Path

        The absolute path of the asset.

      • destDirInProject: Path

        The destination directory in the project. this is a relative path to the project Assets root.

      Returns Promise<Editor.Assets.Asset>

      The primary asset found or created.

      Error if there is an error importing the asset or if the import result is invalid.

    MMNEPVFCICPMFPCPTTAAATR