Vixen
02b45cc4
csharp
public static class SceneScalars

How the things only a scene names read in a scene file.

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

Remarks

The vectors moved down to MathScalars and an entity id stayed. This owned both for as long as a scene was the only document holding a Vector3; a .vxmat's feature list holds one too and is read by the runtime, which cannot reference an editor assembly. Two registrations of one type would be two spellings of a colour, resolved by whichever assembly happened to load second.

What is left is what nothing outside a scene has: an EntityId. Everything else is MathScalars's, and calling this still registers both — a caller reading a scene wants the whole dialect and should not have to know it comes from two places.

Methods (1)

  • public static void Register()

    Registers them, once.

Used by (3)

  • MaterialAssetVixen.Editor.AssetEditors
  • SceneFileVixen.Editor.Core
  • SceneSerializerVixen.Editor.SceneView