Property | Type | Description | |
---|---|---|---|
triangles | int[] | ||
uvs | Vector2[] | ||
vertices | Vector3[] |
Method | Description | |
---|---|---|
AddTriangle ( int a, int b, int c ) : void | ||
AddVertex ( Vector3 vertexPosition, Vector2 uv, int vertexIndex ) : void | ||
BakeNormals ( ) : void | ||
CreateMesh ( ) : Mesh | ||
MeshData ( int verticesPerLine ) : UnityEngine | ||
MeshData ( int verticesPerLine, bool useFlatShading ) : UnityEngine | ||
MeshData ( int meshWidth, int meshHeight ) : UnityEngine | ||
ProcessMesh ( ) : void |
Method | Description | |
---|---|---|
CalculateNormals ( ) : Vector3[] | ||
FlatShading ( ) : void | ||
SurfaceNormalFromIndices ( int indexA, int indexB, int indexC ) : Vector3 |
public AddTriangle ( int a, int b, int c ) : void | ||
a | int | |
b | int | |
c | int | |
return | void |
public AddVertex ( Vector3 vertexPosition, Vector2 uv, int vertexIndex ) : void | ||
vertexPosition | Vector3 | |
uv | Vector2 | |
vertexIndex | int | |
return | void |
public MeshData ( int verticesPerLine ) : UnityEngine | ||
verticesPerLine | int | |
return | UnityEngine |
public MeshData ( int verticesPerLine, bool useFlatShading ) : UnityEngine | ||
verticesPerLine | int | |
useFlatShading | bool | |
return | UnityEngine |
public MeshData ( int meshWidth, int meshHeight ) : UnityEngine | ||
meshWidth | int | |
meshHeight | int | |
return | UnityEngine |