Show / Hide Table of Contents

Class Mesh

Inheritance
Object
Object
Mesh
Inherited Members
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class Mesh : Object

Constructors

| Improve this Doc View Source

Mesh()

Declaration
public Mesh()

Properties

bindposes

Declaration
public Matrix4x4[] bindposes { get; set; }
Property Value
Type Description
Matrix4x4[]

blendShapeCount

Declaration
public int blendShapeCount { get; }
Property Value
Type Description
Int32

boneWeights

Declaration
public BoneWeight[] boneWeights { get; set; }
Property Value
Type Description
BoneWeight[]

bounds

Declaration
public Bounds bounds { get; set; }
Property Value
Type Description
Bounds
| Improve this Doc View Source

colors

Declaration
public Color[] colors { get; set; }
Property Value
Type Description
Color[]
| Improve this Doc View Source

colors32

Declaration
public Color32[] colors32 { get; set; }
Property Value
Type Description
Color32[]

indexFormat

Declaration
public IndexFormat indexFormat { get; set; }
Property Value
Type Description
IndexFormat

isReadable

Declaration
public bool isReadable { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

normals

Declaration
public Vector3[] normals { get; set; }
Property Value
Type Description
Vector3[]

subMeshCount

Declaration
public int subMeshCount { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

tangents

Declaration
public Vector4[] tangents { get; set; }
Property Value
Type Description
Vector4[]
| Improve this Doc View Source

triangles

Declaration
public int[] triangles { get; set; }
Property Value
Type Description
Int32[]
| Improve this Doc View Source

uv

Declaration
public Vector2[] uv { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv2

Declaration
public Vector2[] uv2 { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv3

Declaration
public Vector2[] uv3 { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv4

Declaration
public Vector2[] uv4 { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv5

Declaration
public Vector2[] uv5 { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv6

Declaration
public Vector2[] uv6 { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv7

Declaration
public Vector2[] uv7 { get; set; }
Property Value
Type Description
Vector2[]
| Improve this Doc View Source

uv8

Declaration
public Vector2[] uv8 { get; set; }
Property Value
Type Description
Vector2[]

vertexBufferCount

Declaration
public int vertexBufferCount { get; }
Property Value
Type Description
Int32

vertexCount

Declaration
public int vertexCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

vertices

Declaration
public Vector3[] vertices { get; set; }
Property Value
Type Description
Vector3[]

Methods

AddBlendShapeFrame(String, Single, Vector3[], Vector3[], Vector3[])

Declaration
public void AddBlendShapeFrame(string shapeName, float frameWeight, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents)
Parameters
Type Name Description
String shapeName
Single frameWeight
Vector3[] deltaVertices
Vector3[] deltaNormals
Vector3[] deltaTangents
| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| 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
Type Name Description
CombineInstance[] combine
| Improve this Doc View Source

CombineMeshes(CombineInstance[], Boolean)

Declaration
public void CombineMeshes(CombineInstance[] combine, bool mergeSubMeshes)
Parameters
Type Name Description
CombineInstance[] combine
Boolean mergeSubMeshes
| Improve this Doc View Source

CombineMeshes(CombineInstance[], Boolean, Boolean)

Declaration
public void CombineMeshes(CombineInstance[] combine, bool mergeSubMeshes, bool useMatrices)
Parameters
Type Name Description
CombineInstance[] combine
Boolean mergeSubMeshes
Boolean useMatrices
| 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
Type Name Description
CombineInstance[] combine
Boolean mergeSubMeshes
Boolean useMatrices
Boolean hasLightmapData
| Improve this Doc View Source

GetBaseVertex(Int32)

Declaration
public uint GetBaseVertex(int submesh)
Parameters
Type Name Description
Int32 submesh
Returns
Type Description
UInt32
| Improve this Doc View Source

GetBindposes(List<Matrix4x4>)

Declaration
public void GetBindposes(List<Matrix4x4> bindposes)
Parameters
Type Name Description
List<Matrix4x4> bindposes

GetBlendShapeFrameCount(Int32)

Declaration
public int GetBlendShapeFrameCount(int shapeIndex)
Parameters
Type Name Description
Int32 shapeIndex
Returns
Type Description
Int32

GetBlendShapeFrameVertices(Int32, Int32, Vector3[], Vector3[], Vector3[])

Declaration
public void GetBlendShapeFrameVertices(int shapeIndex, int frameIndex, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents)
Parameters
Type Name Description
Int32 shapeIndex
Int32 frameIndex
Vector3[] deltaVertices
Vector3[] deltaNormals
Vector3[] deltaTangents

GetBlendShapeFrameWeight(Int32, Int32)

Declaration
public float GetBlendShapeFrameWeight(int shapeIndex, int frameIndex)
Parameters
Type Name Description
Int32 shapeIndex
Int32 frameIndex
Returns
Type Description
Single

GetBlendShapeIndex(String)

Declaration
public int GetBlendShapeIndex(string blendShapeName)
Parameters
Type Name Description
String blendShapeName
Returns
Type Description
Int32

GetBlendShapeName(Int32)

Declaration
public string GetBlendShapeName(int shapeIndex)
Parameters
Type Name Description
Int32 shapeIndex
Returns
Type Description
String
| Improve this Doc View Source

GetBoneWeights(List<BoneWeight>)

Declaration
public void GetBoneWeights(List<BoneWeight> boneWeights)
Parameters
Type Name Description
List<BoneWeight> boneWeights
| Improve this Doc View Source

GetColors(List<Color>)

Declaration
public void GetColors(List<Color> colors)
Parameters
Type Name Description
List<Color> colors
| Improve this Doc View Source

GetColors(List<Color32>)

Declaration
public void GetColors(List<Color32> colors)
Parameters
Type Name Description
List<Color32> colors
| Improve this Doc View Source

GetIndexCount(Int32)

Declaration
public uint GetIndexCount(int submesh)
Parameters
Type Name Description
Int32 submesh
Returns
Type Description
UInt32
| Improve this Doc View Source

GetIndexStart(Int32)

Declaration
public uint GetIndexStart(int submesh)
Parameters
Type Name Description
Int32 submesh
Returns
Type Description
UInt32
| Improve this Doc View Source

GetIndices(List<Int32>, Int32)

Declaration
public void GetIndices(List<int> indices, int submesh)
Parameters
Type Name Description
List<Int32> indices
Int32 submesh
| Improve this Doc View Source

GetIndices(List<Int32>, Int32, Boolean)

Declaration
public void GetIndices(List<int> indices, int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
Type Name Description
List<Int32> indices
Int32 submesh
Boolean applyBaseVertex
| Improve this Doc View Source

GetIndices(Int32)

Declaration
public int[] GetIndices(int submesh)
Parameters
Type Name Description
Int32 submesh
Returns
Type Description
Int32[]
| Improve this Doc View Source

GetIndices(Int32, Boolean)

Declaration
public int[] GetIndices(int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
Type Name Description
Int32 submesh
Boolean applyBaseVertex
Returns
Type Description
Int32[]

GetNativeIndexBufferPtr()

Declaration
public IntPtr GetNativeIndexBufferPtr()
Returns
Type Description
IntPtr

GetNativeVertexBufferPtr(Int32)

Declaration
public IntPtr GetNativeVertexBufferPtr(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
IntPtr
| Improve this Doc View Source

GetNormals(List<Vector3>)

Declaration
public void GetNormals(List<Vector3> normals)
Parameters
Type Name Description
List<Vector3> normals
| Improve this Doc View Source

GetTangents(List<Vector4>)

Declaration
public void GetTangents(List<Vector4> tangents)
Parameters
Type Name Description
List<Vector4> tangents
| Improve this Doc View Source

GetTopology(Int32)

Declaration
public MeshTopology GetTopology(int submesh)
Parameters
Type Name Description
Int32 submesh
Returns
Type Description
MeshTopology
| Improve this Doc View Source

GetTriangles(List<Int32>, Int32)

Declaration
public void GetTriangles(List<int> triangles, int submesh)
Parameters
Type Name Description
List<Int32> triangles
Int32 submesh
| Improve this Doc View Source

GetTriangles(List<Int32>, Int32, Boolean)

Declaration
public void GetTriangles(List<int> triangles, int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
Type Name Description
List<Int32> triangles
Int32 submesh
Boolean applyBaseVertex
| Improve this Doc View Source

GetTriangles(Int32)

Declaration
public int[] GetTriangles(int submesh)
Parameters
Type Name Description
Int32 submesh
Returns
Type Description
Int32[]
| Improve this Doc View Source

GetTriangles(Int32, Boolean)

Declaration
public int[] GetTriangles(int submesh, [DefaultValue("true")] bool applyBaseVertex)
Parameters
Type Name Description
Int32 submesh
Boolean applyBaseVertex
Returns
Type Description
Int32[]

GetUVDistributionMetric(Int32)

Declaration
public float GetUVDistributionMetric(int uvSetIndex)
Parameters
Type Name Description
Int32 uvSetIndex
Returns
Type Description
Single
| Improve this Doc View Source

GetUVs(Int32, List<Vector2>)

Declaration
public void GetUVs(int channel, List<Vector2> uvs)
Parameters
Type Name Description
Int32 channel
List<Vector2> uvs
| Improve this Doc View Source

GetUVs(Int32, List<Vector3>)

Declaration
public void GetUVs(int channel, List<Vector3> uvs)
Parameters
Type Name Description
Int32 channel
List<Vector3> uvs
| Improve this Doc View Source

GetUVs(Int32, List<Vector4>)

Declaration
public void GetUVs(int channel, List<Vector4> uvs)
Parameters
Type Name Description
Int32 channel
List<Vector4> uvs
| Improve this Doc View Source

GetVertices(List<Vector3>)

Declaration
public void GetVertices(List<Vector3> vertices)
Parameters
Type Name Description
List<Vector3> vertices
| 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
Type Name Description
List<Color> inColors
| Improve this Doc View Source

SetColors(List<Color32>)

Declaration
public void SetColors(List<Color32> inColors)
Parameters
Type Name Description
List<Color32> inColors
| Improve this Doc View Source

SetIndices(Int32[], MeshTopology, Int32)

Declaration
public void SetIndices(int[] indices, MeshTopology topology, int submesh)
Parameters
Type Name Description
Int32[] indices
MeshTopology topology
Int32 submesh
| Improve this Doc View Source

SetIndices(Int32[], MeshTopology, Int32, Boolean)

Declaration
public void SetIndices(int[] indices, MeshTopology topology, int submesh, bool calculateBounds)
Parameters
Type Name Description
Int32[] indices
MeshTopology topology
Int32 submesh
Boolean calculateBounds
| 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
Type Name Description
Int32[] indices
MeshTopology topology
Int32 submesh
Boolean calculateBounds
Int32 baseVertex
| Improve this Doc View Source

SetNormals(List<Vector3>)

Declaration
public void SetNormals(List<Vector3> inNormals)
Parameters
Type Name Description
List<Vector3> inNormals
| Improve this Doc View Source

SetTangents(List<Vector4>)

Declaration
public void SetTangents(List<Vector4> inTangents)
Parameters
Type Name Description
List<Vector4> inTangents
| Improve this Doc View Source

SetTriangles(List<Int32>, Int32)

Declaration
public void SetTriangles(List<int> triangles, int submesh)
Parameters
Type Name Description
List<Int32> triangles
Int32 submesh
| Improve this Doc View Source

SetTriangles(List<Int32>, Int32, Boolean)

Declaration
public void SetTriangles(List<int> triangles, int submesh, bool calculateBounds)
Parameters
Type Name Description
List<Int32> triangles
Int32 submesh
Boolean calculateBounds
| 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
Type Name Description
List<Int32> triangles
Int32 submesh
Boolean calculateBounds
Int32 baseVertex
| 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
Type Name Description
Int32[] triangles
Int32 submesh
Boolean calculateBounds
| 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
Type Name Description
Int32[] triangles
Int32 submesh
Boolean calculateBounds
Int32 baseVertex
| Improve this Doc View Source

SetUVs(Int32, List<Vector2>)

Declaration
public void SetUVs(int channel, List<Vector2> uvs)
Parameters
Type Name Description
Int32 channel
List<Vector2> uvs
| Improve this Doc View Source

SetUVs(Int32, List<Vector3>)

Declaration
public void SetUVs(int channel, List<Vector3> uvs)
Parameters
Type Name Description
Int32 channel
List<Vector3> uvs
| Improve this Doc View Source

SetUVs(Int32, List<Vector4>)

Declaration
public void SetUVs(int channel, List<Vector4> uvs)
Parameters
Type Name Description
Int32 channel
List<Vector4> uvs
| Improve this Doc View Source

SetVertices(List<Vector3>)

Declaration
public void SetVertices(List<Vector3> inVertices)
Parameters
Type Name Description
List<Vector3> inVertices
| Improve this Doc View Source

UploadMeshData(Boolean)

Declaration
public void UploadMeshData(bool markNoLongerReadable)
Parameters
Type Name Description
Boolean markNoLongerReadable

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX