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");