s&box docs

public abstract class ConditionalVisibilityAttribute : Sandbox.InspectorVisibilityAttribute

Hide a property if a condition matches.

Constructors

Showing 1 constructors

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.

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:ConditionalVisibilityAttribute

On this page