A native asset that provides information for visual objects rendering. Learn more at "Lens Scripting".Built-In.Pass.
Example
// Get access to the project's assetManager constmodel = pluginSystem.findInterface(Editor.Model.IModel); constassetManager = model.project.assetManager;
// Locate the shader pass we want to import constresourceLoc = import.meta.resolve('Resources/myMesh.ss_graph'); 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 Material asset to use it.
A native asset that provides information for visual objects rendering. Learn more at "Lens Scripting".Built-In.Pass.
Example