Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AbstractBaseField

Non-generic abstract base class for field controls.
Read time 9 minutesLast updated 3 days ago

Definition

[UxmlElement]public abstract class AbstractBaseField : BindableElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport

Static Fields

Value

Description

alignedFieldUssClassNameUSS class name of elements that are aligned in a inspector element
inputUssClassNameUSS class name of input elements in elements of this type.
labelDraggerVariantUssClassNameUSS class name of labels in elements of this type, when there is a dragger attached on them.
labelUssClassNameUSS class name of labels in elements of this type.
mixedValueLabelUssClassNameUSS class name of elements that show mixed values
noLabelVariantUssClassNameUSS class name of elements of this type, when there is no label.
ussClassNameUSS class name of elements of this type.

Properties

Property

Description

labelThe string representing the label that will appear beside the field. If the string is empty, the label element is removed from the hierarchy. If the string is not empty, the label element is added to the hierarchy.
labelElementThis is the Label object that appears beside the input for the field.
mixedValueLabelRead-only label used to give the appearance of editing multiple different values.
showMixedValueWhen set to true, gives the field the appearance of editing multiple different values.

Methods

Method

Description

UpdateMixedValueContentUpdate the field's visual content depending on showMixedValue.

Inheritance

Inherited Members