csharp
public static class PrimitiveShapesReading and writing an entity's shape, and what the shapes are called.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (1)
public static IReadOnlyList<PrimitiveKind> AllEvery shape, in the order a menu should offer them.
Methods (4)
public static string NameOf(PrimitiveKind kind)What a shape is called, in a menu and in a scene file.
public static bool TryParse(string? text, out PrimitiveKind kind)Reads a shape's name back, tolerating one that is not a shape.
public static void Attach(World world, Entity entity, PrimitiveKind kind)Gives an entity a shape, or changes the one it has.
public static bool TryGet(World world, Entity entity, out PrimitiveKind kind)What shape an entity is drawn as, if it is drawn as one.
Used by (12)
- MeshExtractionTestsVixen.Rendering.Tests
- CreateMenuTestsVixen.Editor.App.Tests
- EditorApplicationVixen.Editor.App
- MeshEditVixen.Editor.SceneView
- PrimitiveShapeTestsVixen.Editor.SceneView.Tests
- SceneDocumentVixen.Editor.SceneView
- SceneFormatMigrationTestsVixen.Editor.SceneView.Tests
- SceneLinesVixen.Editor.SceneView
- SceneMeshesVixen.Editor.SceneView
- ScenePickerVixen.Editor.SceneView
- SceneProbeVixen.Editor.SceneView
- SceneSerializerVixen.Editor.SceneView