Class BoxExtensions
public static class BoxExtensions
- Inheritance
-
BoxExtensions
Methods
Color(ref Box, Color?)
Set the color for this Box.
public static ref Box Color(this ref Box @this, Color? color)
Parameters
Returns
Position(ref Box, float3)
Set the position for this Box.
public static ref Box Position(this ref Box @this, float3 position)
Parameters
Returns
Ref(Box)
Returns a reference to the previously created Box 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<Box> Ref(this Box @this)
Parameters
thisBox
Returns
Rotation(ref Box, quaternion)
The orientation of the box.
public static ref Box Rotation(this ref Box @this, quaternion rotation)
Parameters
thisBoxrotationquaternion