class HideIfAttribute : ConditionalVisibilityAttribute

book_4_sparkGenerated
code_blocksInput

Description

The HideIfAttribute is an attribute used to conditionally hide properties in the Editor Inspector based on the value of another property within the same class. This is particularly useful for creating dynamic and user-friendly editor interfaces.

Members

Properties

Member NameSummary
PropertyNameProperty name to test.
ValueProperty value to test against.

Methods

Member NameSummary
TestCondition(Object, TypeDescription)Tests the condition based on the target object and type description.
TestCondition(SerializedObject)Tests the condition based on the serialized object.