ObjectField
Makes a field to receive any object type. For more information, refer to UXML element ObjectField.
Read time 9 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor.CoreModule
- Inherits from: BaseField<Object>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Object>
[UxmlElement][Icon("UIToolkit/Icons/ObjectField.png")]public class ObjectField : BaseField<Object>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Object>
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 |
|---|---|
| allowBuiltinResources | Shows or hides built-in resources in the object selector popup. True by default to show built-in resources. |
| allowSceneObjects | Allows scene objects to be assigned to the field. |
| objectType | The type of the objects that can be assigned. |