Class DotExtensions
public static class DotExtensions
- Inheritance
-
DotExtensions
Methods
AutoResolution(ref Dot)
Sets resolution to 0 allowing it to be chosen automatically for best results based on the distance to the camera.
public static ref Dot AutoResolution(this ref Dot @this)
Parameters
thisDot
Returns
Color(ref Dot, Color?)
Set the color for this Dot.
public static ref Dot Color(this ref Dot @this, Color? color)
Parameters
Returns
Position(ref Dot, float3)
Set the position for this Dot.
public static ref Dot Position(this ref Dot @this, float3 position)
Parameters
Returns
Radius(ref Dot, Size)
The size of the dot.
public static ref Dot Radius(this ref Dot @this, Size radius)
Parameters
Returns
Ref(Dot)
Returns a reference to the previously created Dot 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<Dot> Ref(this Dot @this)
Parameters
thisDot
Returns
Resolution(ref Dot, byte)
How many triangles the Dot is rendered with.
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 Dot Resolution(this ref Dot @this, byte resolution)