Class WedgeExtensions
public static class WedgeExtensions
- Inheritance
-
WedgeExtensions
Methods
Angle1(ref Wedge, float)
The starting angle.
public static ref Wedge Angle1(this ref Wedge @this, float angle1)
Parameters
Returns
Angle2(ref Wedge, float)
The ending angle.
public static ref Wedge Angle2(this ref Wedge @this, float angle2)
Parameters
Returns
AutoResolution(ref Wedge)
Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.
public static ref Wedge AutoResolution(this ref Wedge @this)
Parameters
thisWedge
Returns
Color(ref Wedge, Color?)
Set the color for this Wedge.
public static ref Wedge Color(this ref Wedge @this, Color? color)
Parameters
Returns
Color(ref Wedge, Color?, Color?)
Set the color for this Wedge.
public static ref Wedge Color(this ref Wedge @this, Color? color1, Color? color2)
Parameters
Returns
FaceCamera(ref Wedge)
Make the visual always face the camera.
public static ref Wedge FaceCamera(this ref Wedge @this)
Parameters
thisWedge
Returns
Facing(ref Wedge, Facing)
The wedge's plane will be perpendicular to this vector.
Defaults to the global Facing value.
public static ref Wedge Facing(this ref Wedge @this, Facing facing)
Parameters
Returns
InnerRadius(ref Wedge, float2)
The wedge's inner radius.
public static ref Wedge InnerRadius(this ref Wedge @this, float2 innerRadius)
Parameters
Returns
Position(ref Wedge, float3)
Set the position for this Wedge.
public static ref Wedge Position(this ref Wedge @this, float3 position)
Parameters
Returns
Radius(ref Wedge, float2)
The wedge's radius.
public static ref Wedge Radius(this ref Wedge @this, float2 radius)
Parameters
Returns
Ref(Wedge)
Returns a reference to the previously created Wedge 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<Wedge> Ref(this Wedge @this)
Parameters
thisWedge
Returns
Resolution(ref Wedge, byte)
How many segments the wedge is rendered with.
This represents the number of segments of a full 360 degree wedge,
e.g. a 180 wedge with a resolution set to 32 will be drawn
with 16 segments, and a 90 degree wedge with 8 segments.
3 = triangular, 4 = square, and more is circular.
Set to 0 for a circular shape with automatic resolution based on the
distance to the camera.
public static ref Wedge Resolution(this ref Wedge @this, byte resolution)
Parameters
Returns
Rotation(ref Wedge, float)
Sets the facing rotation an degrees.
public static ref Wedge Rotation(this ref Wedge @this, float rotation)