- Home /
Question by
Charles_Gams · Mar 27, 2013 at 01:35 PM ·
linerenderergizmo
create Gizmos such as a wire sphere or line in Update Function
I wonder can you draw gizmos such as a wire sphere or a line in an update function without using the onDrawGizmo function.
Reason I'm asking is because i want a wire sphere to be created if certain conditions are met rather than it being there from the start
eg// Wire sphere is created when player jumps
Comment
Best Answer
Answer by KuroiRoy · Mar 27, 2013 at 04:09 PM
You can simply check if the player is jumping in the OnDrawGizmo function
Your answer
Follow this Question
Related Questions
Drawing Lines with AA 1 Answer
Can we hide AudioSource gizmos? 4 Answers
DrawGizmo attribute: GizmoType arg with incompatible flag values 0 Answers
Children's collider2D gizmo position incorrect in scene view 0 Answers
Custom inspector draw Gizmos 0 Answers