Class MeshData
A replacement for UnityEngine.Mesh that stores all the data in memory, for fast access from C#.
Inheritance
System.Object
MeshData
Assembly: Sylves.dll
Syntax
public class MeshData : Object
Constructors
MeshData()
Declaration
Fields
indices
Declaration
Field Value
Type |
Description |
System.Int32[][] |
|
normals
Declaration
Field Value
tangents
Declaration
public Vector4[] tangents
Field Value
topologies
Declaration
public MeshTopology[] topologies
Field Value
uv
Declaration
Field Value
vertices
Declaration
public Vector3[] vertices
Field Value
Properties
subMeshCount
Declaration
public int subMeshCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Clone()
Declaration
Returns
GetIndices(Int32)
Declaration
public int[] GetIndices(int submesh)
Parameters
Type |
Name |
Description |
System.Int32 |
submesh |
|
Returns
Type |
Description |
System.Int32[] |
|
GetTopology(Int32)
Declaration
public MeshTopology GetTopology(int submesh)
Parameters
Type |
Name |
Description |
System.Int32 |
submesh |
|
Returns
InvertWinding()
Declaration
public MeshData InvertWinding()
Returns
RecalculateNormals()
Declaration
public void RecalculateNormals()
Triangulate()
Declaration
public MeshData Triangulate()
Returns
Operators
Multiply(Matrix4x4, MeshData)
Declaration
public static MeshData operator *(Matrix4x4 m, MeshData meshData)
Parameters
Returns
Extension Methods