Struct RedrawScope Extends IDisposable
Public
Used to cache drawing data over multiple frames.
This is useful as a performance optimization when you are drawing the same thing over multiple consecutive frames.
private RedrawScope redrawScope;
void Start () {
redrawScope = DrawingManager.GetRedrawScope();
using (var builder = DrawingManager.GetBuilder(redrawScope)) {
builder.WireSphere(Vector3.zero, 1.0f, Color.red);
}
}
void OnDestroy () {
redrawScope.Dispose();
}
Public Methods
Public Variables
isValid
True if the scope has been created.
Public
Public Static Variables
idCounter
Public
Static
Private/Protected Members
gizmos
Internal
id
ID of the scope.
Internal