Disabler Class
Description
Element that disables its content according to its shouldDisable callback. UXML support
public class Disabler : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Inheritance
Remarks
This element is analogous to IMGUI's EditorGUI.DisabledScope. It can be used in combination with IsEditable(SerializedObject) to avoid editing objects that shouldn't be edited.
Constructors
Disabler() | |
Disabler(Func<Boolean>) |
Fields
contentContainerUssClassName | USS class name of the disabler's contentContainer. |
ussClassName | USS class name of elements of this type. |
Properties
shouldDisable | Set this callback to indicate when to enable/disable contents. Elements will be disabled when it returns true. |