Class Mesh
Assembly: UnityEngine.dll
Syntax
public sealed class Mesh : Object
Constructors
|
Improve this Doc
View Source
Mesh()
Declaration
Properties
bindposes
Declaration
public Matrix4x4[] bindposes { get; set; }
Property Value
blendShapeCount
Declaration
public int blendShapeCount { get; }
Property Value
boneWeights
Declaration
public BoneWeight[] boneWeights { get; set; }
Property Value
bounds
Declaration
public Bounds bounds { get; set; }
Property Value
|
Improve this Doc
View Source
colors
Declaration
public Color[] colors { get; set; }
Property Value
|
Improve this Doc
View Source
colors32
Declaration
public Color32[] colors32 { get; set; }
Property Value
Declaration
public IndexFormat indexFormat { get; set; }
Property Value
isReadable
Declaration
public bool isReadable { get; }
Property Value
|
Improve this Doc
View Source
normals
Declaration
public Vector3[] normals { get; set; }
Property Value
subMeshCount
Declaration
public int subMeshCount { get; set; }
Property Value
|
Improve this Doc
View Source
tangents
Declaration
public Vector4[] tangents { get; set; }
Property Value
|
Improve this Doc
View Source
triangles
Declaration
public int[] triangles { get; set; }
Property Value
|
Improve this Doc
View Source
uv
Declaration
public Vector2[] uv { get; set; }
Property Value
|
Improve this Doc
View Source
uv2
Declaration
public Vector2[] uv2 { get; set; }
Property Value
|
Improve this Doc
View Source
uv3
Declaration
public Vector2[] uv3 { get; set; }
Property Value
|
Improve this Doc
View Source
uv4
Declaration
public Vector2[] uv4 { get; set; }
Property Value
|
Improve this Doc
View Source
uv5
Declaration
public Vector2[] uv5 { get; set; }
Property Value
|
Improve this Doc
View Source
uv6
Declaration
public Vector2[] uv6 { get; set; }
Property Value
|
Improve this Doc
View Source
uv7
Declaration
public Vector2[] uv7 { get; set; }
Property Value
|
Improve this Doc
View Source
uv8
Declaration
public Vector2[] uv8 { get; set; }
Property Value
vertexBufferCount
Declaration
public int vertexBufferCount { get; }
Property Value
vertexCount
Declaration
public int vertexCount { get; }
Property Value
|
Improve this Doc
View Source
vertices
Declaration
public Vector3[] vertices { get; set; }
Property Value
Methods
AddBlendShapeFrame(String, Single, Vector3[], Vector3[], Vector3[])
Declaration
public void AddBlendShapeFrame(string shapeName, float frameWeight, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents)
Parameters
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
Clear(Boolean)
Declaration
public void Clear(bool keepVertexLayout)
Parameters
Type |
Name |
Description |
Boolean |
keepVertexLayout |
|
ClearBlendShapes()
Declaration
public void ClearBlendShapes()
|
Improve this Doc
View Source
CombineMeshes(CombineInstance[])
Declaration
public void CombineMeshes(CombineInstance[] combine)
Parameters
|
Improve this Doc
View Source
CombineMeshes(CombineInstance[], Boolean)
Declaration
public void CombineMeshes(CombineInstance[] combine, bool mergeSubMeshes)
Parameters
|
Improve this Doc
View Source
CombineMeshes(CombineInstance[], Boolean, Boolean)
Declaration
public void CombineMeshes(CombineInstance[] combine, bool mergeSubMeshes, bool useMatrices)
Parameters
|
Improve this Doc
View Source
CombineMeshes(CombineInstance[], Boolean, Boolean, Boolean)
Declaration
public void CombineMeshes(CombineInstance[] combine, [DefaultValue("true")] bool mergeSubMeshes, [DefaultValue("true")] bool useMatrices, [DefaultValue("false")] bool hasLightmapData)
Parameters
|
Improve this Doc
View Source
GetBaseVertex(Int32)
Declaration
public uint GetBaseVertex(int submesh)
Parameters
Type |
Name |
Description |
Int32 |
submesh |
|
Returns
|
Improve this Doc
View Source
GetBindposes(List<Matrix4x4>)
Declaration
public void GetBindposes(List<Matrix4x4> bindposes)
Parameters
GetBlendShapeFrameCount(Int32)
Declaration
public int GetBlendShapeFrameCount(int shapeIndex)
Parameters
Type |
Name |
Description |
Int32 |
shapeIndex |
|
Returns
GetBlendShapeFrameVertices(Int32, Int32, Vector3[], Vector3[], Vector3[])
Declaration
public void GetBlendShapeFrameVertices(int shapeIndex, int frameIndex, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents)
Parameters
GetBlendShapeFrameWeight(Int32, Int32)
Declaration
public float GetBlendShapeFrameWeight(int shapeIndex, int frameIndex)
Parameters
Type |
Name |
Description |
Int32 |
shapeIndex |
|
Int32 |
frameIndex |
|
Returns
GetBlendShapeIndex(String)
Declaration
public int GetBlendShapeIndex(string blendShapeName)
Parameters
Type |
Name |
Description |
String |
blendShapeName |
|
Returns
GetBlendShapeName(Int32)
Declaration
public string GetBlendShapeName(int shapeIndex)
Parameters
Type |
Name |
Description |
Int32 |
shapeIndex |
|
Returns
|
Improve this Doc
View Source
GetBoneWeights(List<BoneWeight>)
Declaration
public void GetBoneWeights(List<BoneWeight> boneWeights)
Parameters
|
Improve this Doc
View Source
GetColors(List<Color>)
Declaration
public void GetColors(List<Color> colors)
Parameters
|
Improve this Doc
View Source
GetColors(List<Color32>)
Declaration
public void GetColors(List<Color32> colors)
Parameters
|
Improve this Doc
View Source
GetIndexCount(Int32)
Declaration
public uint GetIndexCount(int submesh)
Parameters
Type |
Name |
Description |
Int32 |
submesh |
|
Returns
|
Improve this Doc
View Source
GetIndexStart(Int32)
Declaration
public uint GetIndexStart(int submesh)
Parameters
Type |
Name |
Description |
Int32 |
submesh |
|
Returns
|
Improve this Doc
View Source
GetIndices(List<Int32>, Int32)
Declaration
public void GetIndices(List<int> indices, int submesh)
Parameters
|
Improve this Doc
View Source
GetIndices(List<Int32>, Int32, Boolean)
Declaration
public void GetIndices(List<int> indices, int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
|
Improve this Doc
View Source
GetIndices(Int32)
Declaration
public int[] GetIndices(int submesh)
Parameters
Type |
Name |
Description |
Int32 |
submesh |
|
Returns
|
Improve this Doc
View Source
GetIndices(Int32, Boolean)
Declaration
public int[] GetIndices(int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
Returns
GetNativeIndexBufferPtr()
Declaration
public IntPtr GetNativeIndexBufferPtr()
Returns
GetNativeVertexBufferPtr(Int32)
Declaration
public IntPtr GetNativeVertexBufferPtr(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetNormals(List<Vector3>)
Declaration
public void GetNormals(List<Vector3> normals)
Parameters
|
Improve this Doc
View Source
GetTangents(List<Vector4>)
Declaration
public void GetTangents(List<Vector4> tangents)
Parameters
|
Improve this Doc
View Source
GetTopology(Int32)
Declaration
public MeshTopology GetTopology(int submesh)
Parameters
Type |
Name |
Description |
Int32 |
submesh |
|
Returns
|
Improve this Doc
View Source
GetTriangles(List<Int32>, Int32)
Declaration
public void GetTriangles(List<int> triangles, int submesh)
Parameters
|
Improve this Doc
View Source
GetTriangles(List<Int32>, Int32, Boolean)
Declaration
public void GetTriangles(List<int> triangles, int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
|
Improve this Doc
View Source
GetTriangles(Int32)
Declaration
public int[] GetTriangles(int submesh)
Parameters
Type |
Name |
Description |
Int32 |
submesh |
|
Returns
|
Improve this Doc
View Source
GetTriangles(Int32, Boolean)
Declaration
public int[] GetTriangles(int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
Returns
GetUVDistributionMetric(Int32)
Declaration
public float GetUVDistributionMetric(int uvSetIndex)
Parameters
Type |
Name |
Description |
Int32 |
uvSetIndex |
|
Returns
|
Improve this Doc
View Source
GetUVs(Int32, List<Vector2>)
Declaration
public void GetUVs(int channel, List<Vector2> uvs)
Parameters
|
Improve this Doc
View Source
GetUVs(Int32, List<Vector3>)
Declaration
public void GetUVs(int channel, List<Vector3> uvs)
Parameters
|
Improve this Doc
View Source
GetUVs(Int32, List<Vector4>)
Declaration
public void GetUVs(int channel, List<Vector4> uvs)
Parameters
|
Improve this Doc
View Source
GetVertices(List<Vector3>)
Declaration
public void GetVertices(List<Vector3> vertices)
Parameters
|
Improve this Doc
View Source
MarkDynamic()
Declaration
public void MarkDynamic()
|
Improve this Doc
View Source
RecalculateBounds()
Declaration
public void RecalculateBounds()
|
Improve this Doc
View Source
RecalculateNormals()
Declaration
public void RecalculateNormals()
|
Improve this Doc
View Source
RecalculateTangents()
Declaration
public void RecalculateTangents()
|
Improve this Doc
View Source
SetColors(List<Color>)
Declaration
public void SetColors(List<Color> inColors)
Parameters
|
Improve this Doc
View Source
SetColors(List<Color32>)
Declaration
public void SetColors(List<Color32> inColors)
Parameters
|
Improve this Doc
View Source
SetIndices(Int32[], MeshTopology, Int32)
Declaration
public void SetIndices(int[] indices, MeshTopology topology, int submesh)
Parameters
|
Improve this Doc
View Source
SetIndices(Int32[], MeshTopology, Int32, Boolean)
Declaration
public void SetIndices(int[] indices, MeshTopology topology, int submesh, bool calculateBounds)
Parameters
|
Improve this Doc
View Source
SetIndices(Int32[], MeshTopology, Int32, Boolean, Int32)
Declaration
public void SetIndices(int[] indices, MeshTopology topology, int submesh, [DefaultValue("true")] bool calculateBounds, [DefaultValue("0")] int baseVertex)
Parameters
|
Improve this Doc
View Source
SetNormals(List<Vector3>)
Declaration
public void SetNormals(List<Vector3> inNormals)
Parameters
|
Improve this Doc
View Source
SetTangents(List<Vector4>)
Declaration
public void SetTangents(List<Vector4> inTangents)
Parameters
|
Improve this Doc
View Source
SetTriangles(List<Int32>, Int32)
Declaration
public void SetTriangles(List<int> triangles, int submesh)
Parameters
|
Improve this Doc
View Source
SetTriangles(List<Int32>, Int32, Boolean)
Declaration
public void SetTriangles(List<int> triangles, int submesh, bool calculateBounds)
Parameters
|
Improve this Doc
View Source
SetTriangles(List<Int32>, Int32, Boolean, Int32)
Declaration
public void SetTriangles(List<int> triangles, int submesh, [DefaultValue("true")] bool calculateBounds, [DefaultValue("0")] int baseVertex)
Parameters
|
Improve this Doc
View Source
SetTriangles(Int32[], Int32)
Declaration
public void SetTriangles(int[] triangles, int submesh)
Parameters
Type |
Name |
Description |
Int32[] |
triangles |
|
Int32 |
submesh |
|
|
Improve this Doc
View Source
SetTriangles(Int32[], Int32, Boolean)
Declaration
public void SetTriangles(int[] triangles, int submesh, bool calculateBounds)
Parameters
|
Improve this Doc
View Source
SetTriangles(Int32[], Int32, Boolean, Int32)
Declaration
public void SetTriangles(int[] triangles, int submesh, [DefaultValue("true")] bool calculateBounds, [DefaultValue("0")] int baseVertex)
Parameters
|
Improve this Doc
View Source
SetUVs(Int32, List<Vector2>)
Declaration
public void SetUVs(int channel, List<Vector2> uvs)
Parameters
|
Improve this Doc
View Source
SetUVs(Int32, List<Vector3>)
Declaration
public void SetUVs(int channel, List<Vector3> uvs)
Parameters
|
Improve this Doc
View Source
SetUVs(Int32, List<Vector4>)
Declaration
public void SetUVs(int channel, List<Vector4> uvs)
Parameters
|
Improve this Doc
View Source
SetVertices(List<Vector3>)
Declaration
public void SetVertices(List<Vector3> inVertices)
Parameters
|
Improve this Doc
View Source
UploadMeshData(Boolean)
Declaration
public void UploadMeshData(bool markNoLongerReadable)
Parameters
Type |
Name |
Description |
Boolean |
markNoLongerReadable |
|
Extension Methods