Table of Contents

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

this Pill

Returns

Pill

Color(ref Pill, Color?)

Set the color for this Pill.

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

Parameters

this Pill
color Color?

Returns

Pill

FaceCamera(ref Pill)

Make the visual always face the camera.

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

Parameters

this Pill

Returns

Pill

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

this Pill
facing Facing

Returns

Pill

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

this Pill
p1 float3
p2 float3

Returns

Pill

Radius(ref Pill, float)

The radius of the capsule.

public static ref Pill Radius(this ref Pill @this, float radius)

Parameters

this Pill
radius float

Returns

Pill

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

this Pill

Returns

VisualRef<Pill>

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

this Pill
resolution byte

Returns

Pill

Rotation(ref Pill, float)

Sets the facing rotation an degrees.

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

Parameters

this Pill
rotation float

Returns

Pill

SetDefault(ref Pill)

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

Parameters

this Pill

Returns

Pill