Description
The PropertyName
property of the HideIfAttribute
class specifies the name of the property to be tested for conditional visibility. This property is used in conjunction with the Value
property to determine whether a particular property should be hidden in the editor based on the value of another property within the same class.
Usage
To use the PropertyName
property, you must first apply the HideIfAttribute
to a property in your class. Set the PropertyName
to the name of the property you want to test. The property specified by PropertyName
will be checked against the Value
property to decide if the decorated property should be hidden in the editor.
Example
// Example usage of HideIfAttribute
public class MyComponent : Component
{
[HideIf("IsVisible", false)]
public string HiddenProperty { get; set; }
public bool IsVisible { get; set; }
}