ObjectField
Makes a field to receive any object type. For more information, refer to UXML element ObjectField.
Read time 7 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor
- Inherits from: BaseField<Object>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<Object>, IMixedValueSupport
public class ObjectField : BaseField<Object>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<Object>, IMixedValueSupport
Static Fields
Value | Description |
|---|---|
| inputUssClassName | USS class name of input elements in elements of this type. |
| labelUssClassName | USS class name of labels in elements of this type. |
| objectUssClassName | USS class name of object elements in elements of this type. |
| selectorUssClassName | USS class name of selector elements in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| ObjectField() | Constructor. |
| ObjectField(System.String) | Constructor. |
Properties
Property | Description |
|---|---|
| allowSceneObjects | Allows scene objects to be assigned to the field. |
| objectType | The type of the objects that can be assigned. |