Vixen
02b45cc4
csharp
public sealed class SceneFaceMaterialData

Which material one of an entity's face groups is drawn with.

Read the guide page for this →

Remarks

Doc 24's P5 per-face material. A pair rather than a map keyed by the group number, because a YAML mapping with integer keys reads badly, diffs badly and binds differently depending on how the number was quoted — a list of two-key entries is one line per assignment and is unambiguous.

⚠ The reference text rather than a bare id, for Asset's reason: ReferenceIndex answers "what breaks if I delete this" by looking for vx: followed by thirty-two hex digits, and an id serialised as a bare scalar is invisible to it — which would let the editor offer to delete a material out from under a level that uses it.

Fields and properties (2)

  • public int Group

    Which face group.

  • public string Material

    Which material, in vx: form.

Methods (1)

  • public override string ToString()

    Renders it as its group.

Used by (3)

  • SceneEntityDataVixen.Editor.Core
  • SceneSerializerVixen.Editor.SceneView
  • TypeRegistrationVixen.Editor.Core