Editor Scripting API
    • Imports an image as a texture and sets up its wrap mode.

      Parameters

      • assetManager: AssetManager
      • imageFileAbsolutePath: string

        The absolute path to the image file.

      • OptionalwrapMode: WrapMode

        The wrap mode for the texture. Defaults to Editor.Assets.WrapMode.ClampToEdge.

      • OptionalimageImportDestinationDir: string

        The directory where the image will be imported. Defaults to "Images".

      Returns Promise<{ imageAsset: Editor.Assets.Asset; textureParam: TextureParameter }>

      An object containing the image asset and texture parameter.

      Will log an error if the image asset fails to load.

    MMNEPVFCICPMFPCPTTAAATR