Description
The Transform
property of the MeshVertex
struct in the Editor.MeshEditor
namespace provides access to the transformation data associated with a mesh vertex. This includes position, rotation, and scale information relative to the mesh component it belongs to.
Usage
Use the Transform
property to get or set the transformation data of a mesh vertex. This property is useful when you need to manipulate the vertex's position, rotation, or scale within the mesh's local space.
Example
// Example of accessing the Transform property of a MeshVertex
MeshVertex vertex = new MeshVertex();
Transform vertexTransform = vertex.Transform;
// Modify the position of the vertex
vertexTransform.Position += new Vector3(1.0f, 0.0f, 0.0f);
// Apply the modified transform back to the vertex
vertex.Transform = vertexTransform;