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

1 Answer

1

You can simply check if the player is jumping in the OnDrawGizmo function