Class ArrowExtensions
public static class ArrowExtensions
- Inheritance
-
ArrowExtensions
Methods
Color(ref Arrow, Color?)
Set the color for this Arrow.
public static ref Arrow Color(this ref Arrow @this, Color? color)
Parameters
Returns
Color(ref Arrow, Color?, Color?)
Set the color for this Arrow.
public static ref Arrow Color(this ref Arrow @this, Color? color1, Color? color2)
Parameters
Returns
FaceCamera(ref Arrow)
Make the visual always face the camera.
public static ref Arrow FaceCamera(this ref Arrow @this)
Parameters
thisArrow
Returns
Facing(ref Arrow, Facing)
If non-null the arrow head will be perpendicular to this direction.
Otherwise, the head will face the camera.
public static ref Arrow Facing(this ref Arrow @this, Facing facing)
Parameters
Returns
Foot(ref Arrow, ArrowHeadData)
If set will also render a head at the start of the arrow.
public static ref Arrow Foot(this ref Arrow @this, ArrowHeadData foot)
Parameters
thisArrowfootArrowHeadData
Returns
FootLength(ref Arrow, Size)
The length (along the arrow's direction) of the arrow head.
public static ref Arrow FootLength(this ref Arrow @this, Size length)
Parameters
Returns
FootOffset(ref Arrow, Size)
Offsets the end point away from the desired position along the arrow's direction.
public static ref Arrow FootOffset(this ref Arrow @this, Size offset)
Parameters
Returns
FootShape(ref Arrow, ArrowHeadShape)
If true, the head will form a closed triangle.
public static ref Arrow FootShape(this ref Arrow @this, ArrowHeadShape shape)
Parameters
thisArrowshapeArrowHeadShape
Returns
FootSize(ref Arrow, Size)
Sets the foot size.
public static ref Arrow FootSize(this ref Arrow @this, Size size)
Parameters
Returns
FootSize(ref Arrow, Size, Size)
Sets the foot size.
public static ref Arrow FootSize(this ref Arrow @this, Size width, Size length)
Parameters
Returns
FootVisualOffset(ref Arrow, Size)
Offsets this head visual from the end point along the arrow's direction.
Unlike offset, this only offsets the head's visuals, while the
arrow's body/line's position will stay the same.
public static ref Arrow FootVisualOffset(this ref Arrow @this, Size visualOffset)
Parameters
Returns
FootWidth(ref Arrow, Size)
The width (perpendicular to the arrow's direction) of the arrow head.
public static ref Arrow FootWidth(this ref Arrow @this, Size width)
Parameters
Returns
Head(ref Arrow, ArrowHeadData)
Options for how the arrow head is rendered.
public static ref Arrow Head(this ref Arrow @this, ArrowHeadData head)
Parameters
thisArrowheadArrowHeadData
Returns
HeadLength(ref Arrow, Size)
The length (along the arrow's direction) of the arrow head.
public static ref Arrow HeadLength(this ref Arrow @this, Size length)
Parameters
Returns
HeadOffset(ref Arrow, Size)
Offsets the end point away from the desired position along the arrow's direction.
public static ref Arrow HeadOffset(this ref Arrow @this, Size offset)
Parameters
Returns
HeadShape(ref Arrow, ArrowHeadShape)
If true, the head will form a closed triangle.
public static ref Arrow HeadShape(this ref Arrow @this, ArrowHeadShape shape)
Parameters
thisArrowshapeArrowHeadShape
Returns
HeadSize(ref Arrow, Size)
Sets the head size.
public static ref Arrow HeadSize(this ref Arrow @this, Size size)
Parameters
Returns
HeadSize(ref Arrow, Size, Size)
Sets the head size.
public static ref Arrow HeadSize(this ref Arrow @this, Size width, Size length)
Parameters
Returns
HeadVisualOffset(ref Arrow, Size)
Offsets this head visual from the end point along the arrow's direction.
Unlike offset, this only offsets the head's visuals, while the
arrow's body/line's position will stay the same.
public static ref Arrow HeadVisualOffset(this ref Arrow @this, Size visualOffset)
Parameters
Returns
HeadWidth(ref Arrow, Size)
The width (perpendicular to the arrow's direction) of the arrow head.
public static ref Arrow HeadWidth(this ref Arrow @this, Size width)
Parameters
Returns
Length(ref Arrow, MinMax)
Limits the length of th arrow, making sure it's always at least
min long, and never longer than max.
Use negative values to indicate no limit.
public static ref Arrow Length(this ref Arrow @this, MinMax length)
Parameters
Returns
Length(ref Arrow, float)
Set a fixed length for this Arrow.
public static ref Arrow Length(this ref Arrow @this, float length)
Parameters
Returns
Length(ref Arrow, float, float)
Limits the length of th arrow, making sure it's always at least
min long, and never longer than max.
Use negative values to indicate no limit.
public static ref Arrow Length(this ref Arrow @this, float min, float max)
Parameters
Returns
MaxLength(ref Arrow, float)
Set a maximum length for this Arrow.
public static ref Arrow MaxLength(this ref Arrow @this, float length)
Parameters
Returns
MinLength(ref Arrow, float)
Set a minimum length for this Arrow.
public static ref Arrow MinLength(this ref Arrow @this, float length)
Parameters
Returns
Position(ref Arrow, float3, float3)
Set the position for this Arrow.
public static ref Arrow Position(this ref Arrow @this, float3 p1, float3 p2)
Parameters
Returns
Ref(Arrow)
Returns a reference to the previously created Arrow 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<Arrow> Ref(this Arrow @this)
Parameters
thisArrow
Returns
Rotation(ref Arrow, float)
Sets the facing rotation an degrees.
public static ref Arrow Rotation(this ref Arrow @this, float rotation)