Table of Contents

Class LineExtensions

public static class LineExtensions
Inheritance
LineExtensions

Methods

Color(ref Line, Color?)

Set the color for this Line.

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

Parameters

this Line
color Color?

Returns

Line

Color(ref Line, Color?, Color?)

Set the color for this Line.

public static ref Line Color(this ref Line @this, Color? color1, Color? color2)

Parameters

this Line
color1 Color?
color2 Color?

Returns

Line

Position(ref Line, float3, float3)

Set the position for this Line.

public static ref Line Position(this ref Line @this, float3 p1, float3 p2)

Parameters

this Line
p1 float3
p2 float3

Returns

Line

Ref(Line)

Returns a reference to the previously created Line 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<Line> Ref(this Line @this)

Parameters

this Line

Returns

VisualRef<Line>

SetDefault(ref Line)

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

Parameters

this Line

Returns

Line