HideIfAttributeclass

Hide this property if a given property within the same class has the given value. Used typically in the Editor Inspector.

objectConditionalVisibilityAttributeHideIfAttribute
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class HideIfAttribute : ConditionalVisibilityAttribute

Constructors1

Showing 1 constructors

public HideIfAttribute(string propertyName, object value)PUBLICCONSTRUCTOR

ParameterTypeDescription
propertyNamestring
valueobject

Methods2

Showing 2 methods

Properties2

Showing 2 properties

public string HideIfAttribute.PropertyName { get; set; }PUBLICGETSET

Property name to test.

Returns:string

public object HideIfAttribute.Value { get; set; }PUBLICGETSET

Property value to test against.

Returns:object

On this page