class ShowIfAttribute : HideIfAttribute

book_4_sparkGenerated
code_blocksInput

Description

The ShowIfAttribute class is used to conditionally display 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 showing or hiding elements dynamically.

Members

Instance Methods

Member NameSummary
TestCondition(Object, TypeDescription)Evaluates the condition based on the target object and type description to determine if the property should be shown.
TestCondition(SerializedObject)Checks the condition using a serialized object to decide if the property should be visible.