Table of Contents

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

this Dot

Returns

Dot

Color(ref Dot, Color?)

Set the color for this Dot.

public static ref Dot Color(this ref Dot @this, Color? color)

Parameters

this Dot
color Color?

Returns

Dot

Position(ref Dot, float3)

Set the position for this Dot.

public static ref Dot Position(this ref Dot @this, float3 position)

Parameters

this Dot
position float3

Returns

Dot

Radius(ref Dot, Size)

The size of the dot.

public static ref Dot Radius(this ref Dot @this, Size radius)

Parameters

this Dot
radius Size

Returns

Dot

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

this Dot

Returns

VisualRef<Dot>

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)

Parameters

this Dot
resolution byte

Returns

Dot

SetDefault(ref Dot)

public static ref Dot SetDefault(this ref Dot @this)

Parameters

this Dot

Returns

Dot