class HideIfAttribute : ConditionalVisibilityAttribute

book_4_sparkGenerated
code_blocksInput

Description

The HideIfAttribute class is used to conditionally hide properties in the Editor Inspector based on the value of another property within the same class. This attribute is typically applied to properties to enhance the user interface by hiding irrelevant fields.

Members

Instance Properties

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

Instance 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.