Vixen
02b45cc4
csharp
public sealed class ShowIfAttribute

Shows the member only when another member is true.

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

As a annotation

Valid on
Property, Field

Remarks

The condition names a bool member of the same type, evaluated against whichever object is being inspected. With several selected it is evaluated against each: a row is drawn when any of them would show it, and the ones that would not are left out of the write. Hiding a row because one of twenty objects has a flag off is how an edit silently misses nineteen objects.

⚠ A condition is a presentation rule, not an invariant. A hidden member keeps its value and is still serialised; nothing resets it when the flag goes off.

Fields and properties (1)

  • public string Member

    The member tested.

Methods (1)

  • public ShowIfAttribute(string member)

    Shows the member only when another member is true.

Used by (10)

  • Describes_Vixen_Editor_Inspector_Tests_WaterMaterialVixen.Editor.Inspector.Tests
  • Describes_Vixen_Editor_Terrain_FoliageSettingsVixen.Editor.Terrain
  • Describes_Vixen_Editor_Terrain_TerrainBrushSettingsVixen.Editor.Terrain
  • Describes_Vixen_Editor_Terrain_TerrainLayerSettingsVixen.Editor.Terrain
  • Describes_Vixen_Editor_Terrain_TerrainToolSettingsVixen.Editor.Terrain
  • FoliageSettingsVixen.Editor.Terrain
  • TerrainBrushSettingsVixen.Editor.Terrain
  • TerrainLayerSettingsVixen.Editor.Terrain
  • TerrainToolSettingsVixen.Editor.Terrain
  • WaterMaterialVixen.Editor.Inspector.Tests