Ring

Sealed shape drawer that renders ring (circle outline) shapes using the Shapes library. Contains the nested Ring readonly struct for storing ring parameters. Unlike PieDrawer, the normal is stored as-is without negation.

Definition

Namespace: Paragon.Core.ShapesDrawer Assembly: Paragon.dll

public sealed class RingDrawer : ShapeDrawer<RingDrawer.Ring>

Inheritance: ShapeDrawer<Ring> → RingDrawer

Methods

Add

Enqueues a ring for rendering this frame.

public void Add(Vector3 center, Vector3 normal, float radius, Color color, float thickness = 1f)
Parameter
Type
Default
Description

center

Vector3

Ring center position

normal

Vector3

Normal direction of the ring plane

radius

float

Ring radius

color

Color

Ring color

thickness

float

1f

Ring stroke thickness in pixels

Draw

Renders all queued rings. Sets lineGeometry and thicknessSpace from the base class, then iterates the queue calling Shapes.Draw.Ring() with DiscColors.Flat() for each entry.

Ring Struct

Readonly struct holding all parameters for a single ring draw call.

Common Pitfalls

circle-exclamation

Examples

Direct Usage via ShapesDrawer

Range Indicator

See Also

Last updated