Here are the examples of the csharp api UnityEngine.Graphics.DrawMesh(UnityEngine.Mesh, UnityEngine.Matrix4x4, UnityEngine.Material, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
View Source File : DraftStroke.cs
License : GNU General Public License v3.0
Project Creator : NoteCAD
License : GNU General Public License v3.0
Project Creator : NoteCAD
public void DrawToGraphics(Matrix4x4 tf) {
for(var li = lines.GetEnumerator(); li.MoveNext(); ) {
var material = li.Current.Value.material;
for(int i = 0; i < li.Current.Value.meshes.Count; i++) {
var mesh = li.Current.Value.meshes[i];
Graphics.DrawMesh(mesh, tf, material, 0);
}
}
}