UnityEngine.Graphics.DrawMeshNow C# (CSharp) 메소드

DrawMeshNow() 공개 정적인 메소드

Draw a mesh immediately.

public static DrawMeshNow ( Mesh mesh, Matrix4x4 matrix ) : void
mesh Mesh The Mesh to draw.
matrix Matrix4x4 Transformation matrix of the mesh (combines position, rotation and other transformations). Note that the mesh will not be displayed correctly if matrix has negative scale.
리턴 void
        public static void DrawMeshNow(Mesh mesh, Matrix4x4 matrix)
        {
            Internal_DrawMeshNow2(mesh, matrix, -1);
        }

Same methods

Graphics::DrawMeshNow ( Mesh mesh, Matrix4x4 matrix, int materialIndex ) : void
Graphics::DrawMeshNow ( Mesh mesh, Vector3 position, Quaternion rotation ) : void
Graphics::DrawMeshNow ( Mesh mesh, Vector3 position, Quaternion rotation, int materialIndex ) : 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);
 }