// Get access to the project's assetManager constmodel = this.pluginSystem.findInterface(Editor.Model.IModel); constassetManager = model.project.assetManager;
// Locate the shader pass we want to import constresourceLoc = import.meta.resolve('Resources/image.jpeg'); constabsGraphPath = newEditor.Path(resourceLoc);
// Import the shader pass constmeta = awaitassetManager.importExternalFileAsync(absolutePath, newEditor.Path(''), Editor.Model.ResultType.Packed); // You can set meta.primary on a pass asset to use it.
A 2D texture asset.
Example