Enum UpdateMode
Controls when the DebugDraw system updates itself.
It's important to set this appropriately depending on where your game logic happens.
If you are using DebugDraw inside FixedUpdate, set the update mode to FixedUpdate to prevent
possible flickering visuals.
public enum UpdateMode
Fields
FixedUpdate = 1Use this if your game logic and DebugDraw usage happens during Unity's FixedUpdate callback.
Update = 0Use this if your game logic and DebugDraw usage happens during Unity's Update callback.