Class CylinderExtensions
public static class CylinderExtensions
- Inheritance
-
CylinderExtensions
Methods
AutoResolution(ref Cylinder)
Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.
public static ref Cylinder AutoResolution(this ref Cylinder @this)
Parameters
thisCylinder
Returns
Color(ref Cylinder, Color?)
Set the color for this Cylinder.
public static ref Cylinder Color(this ref Cylinder @this, Color? color)
Parameters
Returns
Position(ref Cylinder, float3, float3)
Set the position for this Cylinder.
public static ref Cylinder Position(this ref Cylinder @this, float3 p1, float3 p2)
Parameters
Returns
Radius(ref Cylinder, float)
Set the radius for this Cylinder.
public static ref Cylinder Radius(this ref Cylinder @this, float radius)
Parameters
Returns
Radius(ref Cylinder, float, float)
Set the radius for this Cylinder.
public static ref Cylinder Radius(this ref Cylinder @this, float radius1, float radius2)
Parameters
Returns
Radius1(ref Cylinder, float)
The starting radius.
public static ref Cylinder Radius1(this ref Cylinder @this, float radius1)
Parameters
Returns
Radius2(ref Cylinder, float)
The end radius.
public static ref Cylinder Radius2(this ref Cylinder @this, float radius2)
Parameters
Returns
Ref(Cylinder)
Returns a reference to the previously created Cylinder 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<Cylinder> Ref(this Cylinder @this)
Parameters
thisCylinder
Returns
Resolution(ref Cylinder, byte)
The resolution of the end-cap circles. Set to 0 for an automatic resolution based on the distance to the camera.
public static ref Cylinder Resolution(this ref Cylinder @this, byte resolution)
Parameters
Returns
Rotation(ref Cylinder, float)
Controls the orientation/rotation of the cylinder around its axis.
public static ref Cylinder Rotation(this ref Cylinder @this, float rotation)