Vixen
02b45cc4
csharp
public sealed class SceneEntityData

One entity in a scene file, and everything under it.

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

Remarks

⚠ Children are nested rather than each naming a parent, and that is a decision about diffs. A flat list with parent ids is simpler to stream and it makes moving a subtree an edit to n lines scattered through the file; nesting makes it one moved block. A scene is a file people merge by hand often enough that the readable form wins, which is the same reason the whole authoring format is YAML rather than the binary the runtime eventually loads.

The transform is the local one, because that is the authored value — a world matrix is derived every frame from the hierarchy and storing it would be storing something the next transform pass overwrites.

Fields and properties (14)

  • public EntityId Id

    What names this entity, in this file and in every reference to it.

  • public string Name

    What it is called.

  • public Vector3 Position

    Where it is, relative to its parent.

  • public Quaternion Rotation

    How it is turned, relative to its parent.

  • public Vector3 Scale

    How big it is, relative to its parent.

  • public string Shape

    How a scene used to carry a shape. Read, and never written.

  • public SceneLightData? Light

    How a scene used to carry a light. Read, and never written.

  • public string Asset

    The asset this entity is an instance of, in vx: form, or empty for none.

  • public SceneMeshData? Mesh

    The editable geometry this entity carries, or for none.

  • public SceneShapeData? Parameters

    The live parameters its geometry is generated from, or .

  • public string Boolean
  • public List<SceneFaceMaterialData> Materials

    A material per face group, for the groups that name one.

  • public List<SceneEntityData> Children

    What hangs from it, in order.

  • public List<object> Components

    What it carries besides its transform, each tagged with what it is.

Methods (1)

  • public override string ToString()

    Renders it as its name.

Used by (11)

  • BlockoutBooleanTestsVixen.Editor.Blockout.Tests
  • BlockoutCreateTestsVixen.Editor.Blockout.Tests
  • EditMeshSceneTestsVixen.Editor.SceneView.Tests
  • LightTestsVixen.Editor.SceneView.Tests
  • PrefabVixen.Editor.AssetEditors
  • PrefabInstanceTestsVixen.Editor.AssetEditors.Tests
  • PrimitiveShapeTestsVixen.Editor.SceneView.Tests
  • SceneCompilerVixen.Editor.Assets
  • SceneFileVixen.Editor.Core
  • SceneSerializerVixen.Editor.SceneView
  • TypeRegistrationVixen.Editor.Core