ObjectField
Object field used with the advanced search picker.
Read time 7 minutesLast updated 11 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Search
- 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
Constructors
Constructor | Description |
|---|---|
| ObjectField() | Construct an advanced search field UITK control. |
| ObjectField(System.String) | Construct an advanced search field UITK control. |
Properties
Property | Description |
|---|---|
| objectType | Type of the object to be selected. |
| searchContext | Search query context used to populate the object picker. |
| searchViewFlags | Search flags used to open the search picker window. |
Static Properties
Property | Description |
|---|---|
| singleLineHeight | Default line height used to render the object field control. |
Methods
Method | Description |
|---|---|
| SetValueWithoutNotify | Set the object field selected objects. |
Static Methods
Method | Description |
|---|---|
| DoObjectField | Draw an IMGUI advanced object field. |