A vertex in a MeshTriangle. Can -and should!- be shared by multiple triangles. Used in a MeshCreator. Cannot be part of more than one MeshCreator.
More...
A vertex in a MeshTriangle. Can -and should!- be shared by multiple triangles. Used in a MeshCreator. Cannot be part of more than one MeshCreator.
§ MeshVertex()
| UnityUtilities.MeshVertex.MeshVertex |
( |
Vector3 |
position, |
|
|
Vector3 |
normal = default(Vector3), |
|
|
Color |
color = new Color(), |
|
|
Vector2 |
uv = new Vector2() |
|
) |
| |
Creates a new MeshVertex.
- Parameters
-
| position | The local position of the vertex inside the mesh. |
| normal | The normal of the vertex. |
| color | The color of the vertex. |
| uv | The first UV coordinates of the vertex. |
§ Color
| Color UnityUtilities.MeshVertex.Color |
|
getset |
§ Normal
| Vector3 UnityUtilities.MeshVertex.Normal |
|
getset |
The normal of the vertex.
§ Position
| Vector3 UnityUtilities.MeshVertex.Position |
|
getset |
The local position of the vertex inside the mesh.
§ UV
| Vector2 UnityUtilities.MeshVertex.UV |
|
getset |
The first UV coordinates of the vertex.
§ VertexIndex
| int UnityUtilities.MeshVertex.VertexIndex |
|
getset |
The documentation for this class was generated from the following file:
- MeshCreator/MeshVertex.cs