Table of Contents

Class CrossExtensions

public static class CrossExtensions
Inheritance
CrossExtensions

Methods

Color(ref Cross, Color?)

Set the color for this Cross.

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

Parameters

this Cross
color Color?

Returns

Cross

FaceCamera(ref Cross)

Make the visual always face the camera.

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

Parameters

this Cross

Returns

Cross

Facing(ref Cross, Facing)

Defines the normal of the plane the cross will be drawn on.

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

Parameters

this Cross
facing Facing

Returns

Cross

Position(ref Cross, float3)

Set the position for this Cross.

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

Parameters

this Cross
position float3

Returns

Cross

Ref(Cross)

Returns a reference to the previously created Cross 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<Cross> Ref(this Cross @this)

Parameters

this Cross

Returns

VisualRef<Cross>

Rotation(ref Cross, float)

Sets the facing rotation an degrees.

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

Parameters

this Cross
rotation float

Returns

Cross

SetDefault(ref Cross)

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

Parameters

this Cross

Returns

Cross

Size(ref Cross, float2)

The size of the cross.

public static ref Cross Size(this ref Cross @this, float2 size)

Parameters

this Cross
size float2

Returns

Cross