FxMeshPrimitive ​
This module provides functions for modifying MeshPrimitive nodes, which include MeshBox, MeshCone, MeshCylinder, MeshSphere, and MeshTorus nodes.
Load ​
lua
FxMeshPrimitive = require "FxMeshPrimitive";Functions ​
| Function | Description |
|---|---|
| Convert (NodeID) | Converts a mesh primitive to a mesh layer node. |
Convert (NodeID) ​
This function converts the specified MeshPrimitive node to a MeshLayer node.
Parameters ​
- NodeID: The NodeID of the MeshPrimitive node to convert
Errors ​
Possible errors include FX_REQUIRED_ASSET_UNAVAILABLE, FX_NODE_NOT_FOUND
Since ​
Version 1.0
Example ​
lua
FxMeshPrimitive.Convert("Cone1");