Свойство | Тип | Описание | |
---|---|---|---|
triangles | int[] | ||
uvs | Vector2[] | ||
vertices | Vector3[] |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public AddVertex ( Vector3 vertexPosition, Vector2 uv, int vertexIndex ) : void | ||
vertexPosition | Vector3 | |
uv | Vector2 | |
vertexIndex | int | |
Результат | void |
public MeshData ( int verticesPerLine ) : UnityEngine | ||
verticesPerLine | int | |
Результат | UnityEngine |
public MeshData ( int verticesPerLine, bool useFlatShading ) : UnityEngine | ||
verticesPerLine | int | |
useFlatShading | bool | |
Результат | UnityEngine |
public MeshData ( int meshWidth, int meshHeight ) : UnityEngine | ||
meshWidth | int | |
meshHeight | int | |
Результат | UnityEngine |