Function Draw.PushDuration
PushDuration
(float duration)
Draws everything until the next PopDuration for a number of seconds.
Public
Static
void PushDuration (
float | duration |
Draws everything until the next PopDuration for a number of seconds.
Warning
This is not recommended inside a DrawGizmos callback since DrawGizmos is called every frame anyway.
Warning
This method cannot be used inside of Burst jobs. See Drawing from a Job/ECS instead.