Table of Contents

Class CircleExtensions

public static class CircleExtensions
Inheritance
CircleExtensions

Methods

AutoResolution(ref Circle)

Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.

public static ref Circle AutoResolution(this ref Circle @this)

Parameters

this Circle

Returns

Circle

Color(ref Circle, Color?)

Set the color for this Circle.

public static ref Circle Color(this ref Circle @this, Color? color)

Parameters

this Circle
color Color?

Returns

Circle

FaceCamera(ref Circle)

Make the visual always face the camera.

public static ref Circle FaceCamera(this ref Circle @this)

Parameters

this Circle

Returns

Circle

Facing(ref Circle, Facing)

The circle plane will be perpendicular to this vector.
Defaults to the global Facing value.

public static ref Circle Facing(this ref Circle @this, Facing facing)

Parameters

this Circle
facing Facing

Returns

Circle

Position(ref Circle, float3)

Set the position for this Circle.

public static ref Circle Position(this ref Circle @this, float3 position)

Parameters

this Circle
position float3

Returns

Circle

Radius(ref Circle, float2)

The size of the circle.

public static ref Circle Radius(this ref Circle @this, float2 radius)

Parameters

this Circle
radius float2

Returns

Circle

Ref(Circle)

Returns a reference to the previously created Circle visual.
If you need to keep a reference to a long-lived visual, this will allow you to modify or delete the visual at some point in the future.

Important: only use this directly after creating a visual, as it may not be valid beyond that.

public static VisualRef<Circle> Ref(this Circle @this)

Parameters

this Circle

Returns

VisualRef<Circle>

Resolution(ref Circle, byte)

How many segments the circle is rendered with. 3 = triangular, 4 = square, and more is circular.
Set to 0 for a circular shape with automatic resolution based on the distance to the camera.

public static ref Circle Resolution(this ref Circle @this, byte resolution)

Parameters

this Circle
resolution byte

Returns

Circle

Rotation(ref Circle, float)

Sets the facing rotation an degrees.

public static ref Circle Rotation(this ref Circle @this, float rotation)

Parameters

this Circle
rotation float

Returns

Circle

SetDefault(ref Circle)

public static ref Circle SetDefault(this ref Circle @this)

Parameters

this Circle

Returns

Circle