Vixen
dd8b0a81
csharp
public struct LodLevel

Which level of its parent's group an entity draws.

Read the guide page for this →

As a scene component

Size
4 bytes — 1024 rows in a 16 KB chunk, alone on the archetype

Remarks

Zero is the most detailed level, which is also what a zeroed column reads as — so an entity that gained the component and was never given a number is the finest level rather than an invalid one.

⚠ Read every frame, unlike MeshRenderable.CastsShadows. The membership it produces is per render object and the render object outlives no Resettle, so the extraction restates it rather than stamping it once — which is also what makes an author dragging a level between groups take effect in the viewport.

Fields and properties (1)

  • public int Level

    Which level this entity is — 0 is the most detailed.

Used by (10)

  • ComponentRegistrationVixen.Rendering
  • LodExtractionSystemVixen.Engine.Renderer
  • LodExtractionTestsVixen.Engine.Renderer.Tests
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Ecs_LodLevelSerializerVixen.Rendering
  • EditorApplicationVixen.Editor.App
  • LodGroupGestureTestsVixen.Editor.App.Tests
  • LodRangeTestsVixen.Editor.SceneView.Tests
  • MaterialIconsVixen.Editor.App
  • SceneLinesVixen.Editor.SceneView