Scripting API

Scripting API

GizmoSegment

Struct in Abyss.Core, from Abyss.Core.

One line a game's gizmos drew, as the editor's Scene panel draws it.

public readonly struct GizmoSegment

Remarks

Laid out as abyss_core::game_gizmos::GizmoSegment is, 60 bytes. Its colors are sRGB, red, green, blue and alpha, as the editor's interface draws in.

Properties

From

public Vector3 From { get; init; }

Where it starts, in the world.

To

public Vector3 To { get; init; }

Where it ends, in the world.

FromColor

public Vector4 FromColor { get; init; }

Its color where it starts.

ToColor

public Vector4 ToColor { get; init; }

Its color where it ends.

Width

public float Width { get; init; }

How wide it is drawn, in pixels.