Class PillExtensions
public static class PillExtensions
- Inheritance
-
PillExtensions
Methods
AutoResolution(ref Pill)
Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.
public static ref Pill AutoResolution(this ref Pill @this)
Parameters
thisPill
Returns
Color(ref Pill, Color?)
Set the color for this Pill.
public static ref Pill Color(this ref Pill @this, Color? color)
Parameters
Returns
FaceCamera(ref Pill)
Make the visual always face the camera.
public static ref Pill FaceCamera(this ref Pill @this)
Parameters
thisPill
Returns
Facing(ref Pill, Facing)
Defines the normal of the plane the pill will be drawn on.
public static ref Pill Facing(this ref Pill @this, Facing facing)
Parameters
Returns
Position(ref Pill, float3, float3)
Set the position for this Pill.
public static ref Pill Position(this ref Pill @this, float3 p1, float3 p2)
Parameters
Returns
Radius(ref Pill, float)
The radius of the capsule.
public static ref Pill Radius(this ref Pill @this, float radius)
Parameters
Returns
Ref(Pill)
Returns a reference to the previously created Pill 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<Pill> Ref(this Pill @this)
Parameters
thisPill
Returns
Resolution(ref Pill, byte)
The resolution of the circles that make up the pill. Set to 0 for an automatic resolution based on the distance to the camera.
public static ref Pill Resolution(this ref Pill @this, byte resolution)
Parameters
Returns
Rotation(ref Pill, float)
Sets the facing rotation an degrees.
public static ref Pill Rotation(this ref Pill @this, float rotation)