public enum PrimitiveKindOne of the shapes an engine can build rather than import.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A closed set, deliberately. These are the shapes somebody blocks a level out with and tests a material on before there is any art — not a modelling kernel. Anything that needs a shape not on this list needs a mesh asset, and the moment this enum starts growing parameters per member is the moment that has become true.
⚠ The numbers are part of the scene format. A member added in the middle would renumber every one after it and silently turn every saved cube into a sphere, so new members go on the end. The authoring format writes the name for exactly this reason — see the editor's shape component — but the values are still worth pinning.
Fields and properties (8)
CubeA unit cube.
SphereA sphere, latitude-longitude.
CylinderA cylinder with a cap at each end.
CapsuleA cylinder with a hemisphere at each end.
ConeA cone with a cap at the bottom.
PlaneA flat, subdivided square lying in the ground plane.
QuadA single flat square standing up, facing +Z.
TorusA ring of circular cross-section, lying in the ground plane.
Used by (36)
- GeometryKeyVixen.Rendering
- MeshExtractionSystemVixen.Rendering
- MeshExtractionTestsVixen.Rendering.Tests
- MeshPrimitivesVixen.Rendering
- MeshPrimitivesTestsVixen.Rendering.Tests
- PrimitiveShapeVixen.Rendering
- PrimitiveShapesVixen.Rendering
- TypeRegistrationVixen.Rendering
- Vixen_Rendering_Ecs_PrimitiveShapeSerializerVixen.Rendering
- BlockoutGeometryTestsVixen.Editor.Blockout.Tests
- BlockoutSelectionTestsVixen.Editor.Blockout.Tests
- CreateMenuTestsVixen.Editor.App.Tests
- EditMeshSceneTestsVixen.Editor.SceneView.Tests
- EditMeshesVixen.Editor.SceneView
- EditorApplicationVixen.Editor.App
- MarqueeTestsVixen.Editor.SceneView.Tests
- MeshEditVixen.Editor.SceneView
- MeshEditTestsVixen.Editor.SceneView.Tests
- PickingTestsVixen.Editor.SceneView.Tests
- PrimitiveShapeTestsVixen.Editor.SceneView.Tests
- SceneDocumentVixen.Editor.SceneView
- SceneFormatMigrationTestsVixen.Editor.SceneView.Tests
- SceneLinesVixen.Editor.SceneView
- SceneMaterialTestsVixen.Editor.SceneView.Tests
- SceneMeshAssetTestsVixen.Editor.SceneView.Tests
- SceneMeshesVixen.Editor.SceneView
- ScenePickerVixen.Editor.SceneView
- SceneProbeVixen.Editor.SceneView
- SceneRenderComponentTestsVixen.Editor.Assets.Tests
- SceneSerializerVixen.Editor.SceneView
- SceneShapeVixen.Editor.SceneView
- ShapeBatchVixen.Editor.SceneView
- SnapContextTestsVixen.Editor.SceneView.Tests
- SnapTestsVixen.Editor.SceneView.Tests
- SubObjectTestsVixen.Editor.SceneView.Tests
- ViewportStateTestsVixen.Editor.SceneView.Tests