Table of Contents

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

this Box
color Color?

Returns

Box

Position(ref Box, float3)

Set the position for this Box.

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

Parameters

this Box
position float3

Returns

Box

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

this Box

Returns

VisualRef<Box>

Rotation(ref Box, quaternion)

The orientation of the box.

public static ref Box Rotation(this ref Box @this, quaternion rotation)

Parameters

this Box
rotation quaternion

Returns

Box

SetDefault(ref Box)

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

Parameters

this Box

Returns

Box

Size(ref Box, float3)

The size of the box.

public static ref Box Size(this ref Box @this, float3 size)

Parameters

this Box
size float3

Returns

Box