Beta
The Editor.Assets.Pass on a Editor.Assets.Material.
// Import built in helpersimport * as Utils from 'LensStudio:Utils@1.0.js';// In the plugin create functionconst model = pluginSystem.findInterface(Editor.Model.IModel);const assetManager = model.project.assetManager;const destination = destination;const material = const assetManager.createNativeAsset('Material', 'Material Name', destination);const absGraphPath = new Editor.Path(params.graph_path);const pass = await Utils.findOrCreateAsync(assetManager, absGraphPath, destination);const passInfo = material.addPass(pass); Copy
// Import built in helpersimport * as Utils from 'LensStudio:Utils@1.0.js';// In the plugin create functionconst model = pluginSystem.findInterface(Editor.Model.IModel);const assetManager = model.project.assetManager;const destination = destination;const material = const assetManager.createNativeAsset('Material', 'Material Name', destination);const absGraphPath = new Editor.Path(params.graph_path);const pass = await Utils.findOrCreateAsync(assetManager, absGraphPath, destination);const passInfo = material.addPass(pass);
Readonly
The unique id of the entity.
The entity's type.
A list of entities which this entity has a reference to.
A list of entities which has a reference to this entity.
Swap this entity for another one based on a JSON of the current entity id and the target entity id.
The Editor.Assets.Pass on a Editor.Assets.Material.
Example