Table of Contents

Struct Dash

Defines the properties of a dash line.
Can be implicitly created from a single float to specify a uniform dash and g ap value.

[BurstCompile]
public struct Dash

Constructors

Dash(float)

public Dash(float dash)

Parameters

dash float

Dash(float, float)

public Dash(float dash, float gap)

Parameters

dash float
gap float

Dash(float, float, float)

public Dash(float offset, float dash, float gap)

Parameters

offset float
dash float
gap float

Fields

dash

The length of the solid part of the dash.

public float dash

Field Value

float

gap

The length of the gap between dashes.

public float gap

Field Value

float

offset

At what point in the dash does the lines start.

public float offset

Field Value

float

Methods

Normalize()

Returns the normalized values used by the shader to produce the dash.

public Dash.Values Normalize()

Returns

Dash.Values

Normalize(float)

Returns the normalized values used by the shader to produce the dash.

public Dash.Values Normalize(float distance)

Parameters

distance float

Returns

Dash.Values

Normalize(float3, float3)

Returns the normalized values used by the shader to produce the dash.

public Dash.Values Normalize(float3 p1, float3 p2)

Parameters

p1 float3
p2 float3

Returns

Dash.Values

Operators

implicit operator Dash(float)

public static implicit operator Dash(float dash)

Parameters

dash float

Returns

Dash