ConditionalVisibilityAttributeclass

Hide a property if a condition matches.

objectInspectorVisibilityAttributeConditionalVisibilityAttribute
Namespace
global
Assembly
Sandbox.Engine
Declaration
public abstract class ConditionalVisibilityAttribute : Sandbox.InspectorVisibilityAttribute

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

public virtual bool TestCondition(object targetObject, Sandbox.TypeDescription td)PUBLICVIRTUAL

The test condition.

ParameterTypeDescription
targetObjectobjectThe class instance of the property this attribute is attached to.
tdTypeDescriptionDescription of the `targetObject`'s type.
Returns:boolReturn true if the property should be visible.

On this page