- Home /
"DrawOrder and AnimationCurves mismatch". Why? When?
Hello! Has anyone an idea what is behind this warning? I am recording a very basic animation in order to manipulate the volume of an Audio Source and then several warnings of this type are appearing, followed by stating the number of DrawOrders and AnimationCurves. The result: Unity slows down and even hangs.
The warning has also this type: "SyncDrawOrder: m_DrawOrder.Count != m_AnimationCurves.Length 1296!=6 UnityEditor.DockArea:OnGUI()"
The warnings appear while in Edit mode and, how it seems, when I play the animation. Also while the animation is running the number of draw orders increases, while the curves remain the same.
EDIT: I noticed something. I had more than one audio sources on this object. When I tried to animate the volume, the animation clip was affecting the volume from all the audio sources and not only the specific I wanted to. Also when I left only one audio source the message disappeared. Does this give any clue? Does it also mean that I cannot have more than one audio sources on a single object and try to animate their settings?
Your answer
Follow this Question
Related Questions
How to set the duration of a looping animation from the inspector? 5 Answers
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers
questions about handling animation on runtime 0 Answers
Offset multiple properties in curves animation window by the same amount 0 Answers