UnityEngine.Graphics.DrawMeshNow C# (CSharp) Method

DrawMeshNow() public static method

Draw a mesh immediately.

public static DrawMeshNow ( Mesh mesh, Vector3 position, Quaternion rotation, int materialIndex ) : void
mesh Mesh The Mesh to draw.
position Vector3 Position of the mesh.
rotation Quaternion Rotation of the mesh.
materialIndex int Subset of the mesh to draw.
return void
        public static void DrawMeshNow(Mesh mesh, Vector3 position, Quaternion rotation, int materialIndex)
        {
            Internal_DrawMeshNow1(mesh, position, rotation, materialIndex);
        }

Same methods

Graphics::DrawMeshNow ( Mesh mesh, Matrix4x4 matrix ) : void
Graphics::DrawMeshNow ( Mesh mesh, Matrix4x4 matrix, int materialIndex ) : void
Graphics::DrawMeshNow ( Mesh mesh, Vector3 position, Quaternion rotation ) : void

Usage Example

コード例 #1
0
 public static void DrawB(MeshHolder holder)
 {
     holder.meshB.vertices = holder.Vertices;
     holder.meshB.uv       = holder.UVs;
     holder.meshB.colors32 = holder.Colors;
     UnityGraphics.DrawMeshNow(holder.meshB, Matrix4x4.identity);
 }