Class ObjectField
Inheritance
ObjectField
Implements
Inherited Members
Namespace: UnityEditor.Experimental.UIElements
Assembly: UnityEditor.dll
Syntax
public class ObjectField : BaseField<Object>, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<Object>
Constructors
| Improve this Doc View SourceObjectField()
Declaration
public ObjectField()
Properties
| Improve this Doc View SourceallowSceneObjects
Declaration
public bool allowSceneObjects { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
focusIndex
Declaration
public override int focusIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceobjectType
Declaration
public Type objectType { get; set; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt |
Overrides
| Improve this Doc View SourceSetValueAndNotify(Object)
Declaration
[Obsolete("This method is replaced by simply using this.value. The default behaviour has been changed to notify when changed. If the behaviour is not to be notified, SetValueWithoutNotify() must be used.", false)]
public override void SetValueAndNotify(Object newValue)
Parameters
Type | Name | Description |
---|---|---|
Object | newValue |
Overrides
UnityEngine.Experimental.UIElements.BaseField<UnityEngine.Object>.SetValueAndNotify(UnityEngine.Object)
|
Improve this Doc
View Source
SetValueWithoutNotify(Object)
Declaration
public override void SetValueWithoutNotify(Object newValue)
Parameters
Type | Name | Description |
---|---|---|
Object | newValue |
Overrides
UnityEngine.Experimental.UIElements.BaseField<UnityEngine.Object>.SetValueWithoutNotify(UnityEngine.Object)