Vixen
02b45cc4
csharp
public readonly record struct GizmoPlacement

Where the entity carrying a component is, in world space.

Read the guide page for this →

Remarks

⚠ Five vectors rather than the Transform they came from, and the reason is that Transform is a ref struct. One cannot be a field, boxed, or captured, which rules out handing it to a drawer that wants to keep it for a moment — and it needs a World and an Entity to exist at all, so a test for a gizmo would have to build a world to call one. This is what a gizmo actually reads, in a shape a test can write a literal for.

Fields and properties (5)

  • public Vector3 Position

    Its origin.

  • public Vector3 Right

    Its local X, normalised.

  • public Vector3 Up

    Its local Y, normalised.

  • public Vector3 Forward

    Its local Z, normalised.

  • public Vector3 Scale

    Its lossy world scale.

Methods (2)

Used by (4)

  • ComponentGizmoTestsVixen.Editor.SceneView.Tests
  • ComponentGizmosVixen.Editor.SceneView
  • DeclaredContributionsVixen.Editor.App
  • SpyVixen.Editor.SceneView.Tests