Vixen
02b45cc4
csharp
public readonly record struct DebugText

A label at a point in the world, drawn facing the camera.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Kept as text rather than expanded into lines at the call site, because which way "up" is on the screen is the camera's business and a call site does not have one — the renderer turns these into strokes once it knows the view.

Fields and properties (5)

  • public Vector3 Position

    Where the label's centre-left sits.

  • public string Text

    What it says.

  • public Color4 Colour

    What colour it is.

  • public float Size

    The cap height, in world units.

  • public float Remaining

    Seconds left to live. Zero means "this frame only".

Methods (2)

  • public DebugText(Vector3 Position, string Text, Color4 Colour, float Size, float Remaining)

    A label at a point in the world, drawn facing the camera.

  • public DebugText WithRemaining(float remaining)

    The same entry with a different lifetime.

Used by (3)

  • DebugDrawVixen.Engine
  • DebugGeometryVixen.Engine.Renderer
  • GizmoTestsVixen.Animation.Tests