Vixen
02b45cc4
csharp
public enum SceneShow

What a viewport draws, as one bitset per pane.

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

Remarks

Unreal's Show flags and Unity's scene-view toggles, and the reason both exist is the same. A viewport that draws everything is unreadable the moment a scene has lights, parents and bounds in it, and every one of those is something somebody needs to look at on its own for ten minutes and never again. A bitset the collectors read is the smallest thing that gives them that.

⚠ Per pane, not per editor. The point of a four-pane layout is that the panes disagree — a wireframe top view beside a shaded perspective one is the whole reason somebody asked for four — so this lives on SceneViewport beside the camera and the view mode rather than on the application.

⚠ Only flags with something behind them are here. Doc 20's checklist names colliders, audio sources and navigation as well; the editor has no collider component, no audio-source component and no navigation mesh to draw, so a tick for any of them would be a control that does nothing — which is doc 20's own second bar ("nothing they find is a toy") failed by the menu that was meant to satisfy it. They arrive with the subsystems, and adding one here is a line in this enum and a branch in SceneLines.

Fields and properties (11)

  • None

    An empty pane: the clear colour and nothing else.

  • Grid

    The floor grid.

  • Markers

    The three-axis cross at every entity.

  • Parents

    The faded line from an entity to its parent.

  • Lights

    What each light reaches: the cone, the rings, the rays.

  • Meshes

    The surfaces of shaped entities.

  • Gizmos

    The transform handles.

  • Bounds

    A box round each shaped entity, in its own axes.

  • Volumes

    Each post-process volume's box, and a second one at its blend radius.

  • Components

    Whatever a component's own gizmo draws for it.

  • Default

    What a pane comes up with.

Used by (9)

  • ComponentGizmoTestsVixen.Editor.SceneView.Tests
  • EditorApplicationVixen.Editor.App
  • SceneLinesVixen.Editor.SceneView
  • SceneMeshesVixen.Editor.SceneView
  • SceneViewportVixen.Editor.SceneView
  • ShowFlagsVixen.Editor.SceneView
  • ViewportIdsVixen.Editor.App
  • ViewportStateTestsVixen.Editor.SceneView.Tests
  • ViewportTestsVixen.Editor.App.Tests