A mesh asset to be used with a "Lens Scripting".Built-In.RenderMeshVisual
Example
// Get access to the project's assetManager constmodel = pluginSystem.findInterface(Editor.Model.IModel); constassetManager = model.project.assetManager;
// Locate the mesh we want to import constresourceLoc = import.meta.resolve('Resources/myMesh.mesh'); constabsGraphPath = newEditor.Path(resourceLoc);
// Import the mesh constmeta = awaitassetManager.importExternalFileAsync(absolutePath, newEditor.Path(''), Editor.Model.ResultType.Packed); // You can set meta.primary on a Mesh Component to use it.
A mesh asset to be used with a "Lens Scripting".Built-In.RenderMeshVisual
Example