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
Returns
FaceCamera(ref Cross)
Make the visual always face the camera.
public static ref Cross FaceCamera(this ref Cross @this)
Parameters
thisCross
Returns
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
Returns
Position(ref Cross, float3)
Set the position for this Cross.
public static ref Cross Position(this ref Cross @this, float3 position)
Parameters
Returns
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
thisCross
Returns
Rotation(ref Cross, float)
Sets the facing rotation an degrees.
public static ref Cross Rotation(this ref Cross @this, float rotation)