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
thisCircle
Returns
Color(ref Circle, Color?)
Set the color for this Circle.
public static ref Circle Color(this ref Circle @this, Color? color)
Parameters
Returns
FaceCamera(ref Circle)
Make the visual always face the camera.
public static ref Circle FaceCamera(this ref Circle @this)
Parameters
thisCircle
Returns
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
Returns
Position(ref Circle, float3)
Set the position for this Circle.
public static ref Circle Position(this ref Circle @this, float3 position)
Parameters
Returns
Radius(ref Circle, float2)
The size of the circle.
public static ref Circle Radius(this ref Circle @this, float2 radius)
Parameters
Returns
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
thisCircle
Returns
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
Returns
Rotation(ref Circle, float)
Sets the facing rotation an degrees.
public static ref Circle Rotation(this ref Circle @this, float rotation)