Struct RedrawScope

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 Update () {
redrawScope.Draw();
}

Public Methods

Draw ()

Everything rendered with this scope and which is not older than one frame is drawn again.

RedrawScope (gizmos)

Public Static Variables

idCounter
Public Static

Private/Protected Members

gizmos
Internal
id

ID of the scope.

Internal