Just wanted to make sure that all that nice debug information I am drawing in the editor using ALINE will get removed from the final runtime code once built.
Hi
All calls to Draw.* (which will be most of the calls usually) will be statically removed from the code when a standalone build is done. So they will have 0 runtime cost. No calls to DrawGizmos will be done either .All other drawing commands (including Draw.editor.*, Draw.ingame.* and custom command builders) cannot be statically removed, so I recommend that you wrap those in if (Application.isEditor) if necessary.
1 Like
In the next update, there will be a ALINE_EXCLUDE_FROM_BUILD define which can be used to strip ALINE from standalone builds entirely. Reducing code size a bit.
1 Like