Vixen
02b45cc4
csharp
public interface IPrefabSource

Where an inspected object came from, for override indication and revert.

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

Remarks

An interface rather than something this assembly implements, because what a prefab is belongs to the scene document — this assembly only needs two questions answered about it, and asking them through a contract is what keeps the inspector usable in a test with no project on disk.

Methods (2)

  • bool IsOverridden(object target, InspectorMember member)

    Whether an object's member differs from the prefab it was made from.

  • bool TryGetPrefabValue(object target, InspectorMember member, out object? value)

    The value the prefab has for a member.

Used by (5)

  • InspectorFieldVixen.Editor.Inspector
  • InspectorTargetVixen.Editor.Inspector
  • InspectorViewVixen.Editor.Inspector
  • PrefabSourceVixen.Editor.AssetEditors
  • StubPrefabVixen.Editor.Inspector.Tests