Function Draw.PushPersist

PushPersist (float duration)

Draws everything until the next PopPersist for a number of seconds.

Public Static
void PushPersist (

float

duration

)

Draws everything until the next PopPersist for a number of seconds.

Warning

This is not recommended inside a DrawGizmos callback since DrawGizmos is called every frame anyway.

Deprecated

Renamed to PushDuration

Warning

This method cannot be used inside of Burst jobs. See Drawing from a Job/ECS instead.