API Referenceglobal
public abstract class ConditionalVisibilityAttribute : Sandbox.InspectorVisibilityAttribute
Hide a property if a condition matches.
Constructors
Showing 1 constructors
protected ConditionalVisibilityAttribute()
No results match this filter.
Methods
Showing 1 methods
public virtual bool TestCondition(object targetObject, Sandbox.TypeDescription td)
The test condition.
Parameters
targetObject: The class instance of the property this attribute is attached to.td: Description of the `targetObject`'s type.
Returns
Return true if the property should be visible.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:ConditionalVisibilityAttribute |