Table of Contents

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

this Cone
angle float

Returns

Cone

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

this Cone

Returns

Cone

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

this Cone
cap ConeCap

Returns

Cone

Color(ref Cone, Color?)

Set the color for this Cone.

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

Parameters

this Cone
color Color?

Returns

Cone

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

this Cone
p1 float3
p2 float3

Returns

Cone

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

this Cone

Returns

VisualRef<Cone>

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)

Parameters

this Cone
resolution byte

Returns

Cone

SetDefault(ref Cone)

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

Parameters

this Cone

Returns

Cone