- Home /
DrawMesh (second override) causes runtime errors
I'm using
Graphics.DrawMesh(Mesh mesh, Vector3 position, Quaternion rotation, Material material, int layer)
in a for loop to draw a small mesh for the "vertices" of a curve. But when I run the game, the console displays
m_TransformInfo.worldAABB.IsValid() UnityEngine.Graphics:DrawMesh(Mesh, Vector3, Quaternion, Material, Int32) PathRenderer:Update()
every time DrawMesh is called. And I only get one mesh drawn, while the loop runs ten times. What is causing this?
Your answer
Follow this Question
Related Questions
How to attach a mesh created with Graphics.DrawMesh to a GameObject? 1 Answer
Graphics.DrawMeshInstancedIndirect vs CommandBuffer.DrawMeshInstancedIndirect 1 Answer
How to draw Animations using Graphics.DrawMesh? 0 Answers
Pro develop to Free 1 Answer
Drawing a screen space rectangle with Graphics.DrawMeshNow 1 Answer