Class ConeExtensions
public static class ConeExtensions
- Inheritance
-
ConeExtensions
Methods
Angle(ref Cone, float)
The angle of the cone in degrees.
public static ref Cone Angle(this ref Cone @this, float angle)
Parameters
Returns
AutoResolution(ref Cone)
Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.
public static ref Cone AutoResolution(this ref Cone @this)
Parameters
thisCone
Returns
Cap(ref Cone, ConeCap)
Controls the cap drawn at the end of a Cone.
public static ref Cone Cap(this ref Cone @this, ConeCap cap)
Parameters
Returns
Color(ref Cone, Color?)
Set the color for this Cone.
public static ref Cone Color(this ref Cone @this, Color? color)
Parameters
Returns
Position(ref Cone, float3, float3)
Set the position for this Cone.
public static ref Cone Position(this ref Cone @this, float3 p1, float3 p2)
Parameters
Returns
Ref(Cone)
Returns a reference to the previously created Cone 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<Cone> Ref(this Cone @this)
Parameters
thisCone
Returns
Resolution(ref Cone, byte)
How many segments the cone is rendered with.
Set to 0 for automatic resolution based on the
distance to the camera.
public static ref Cone Resolution(this ref Cone @this, byte resolution)