Class ObjectField
Makes a field to receive any object type.
Inheritance
ObjectField
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class ObjectField : BaseField<Object>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<Object>, IMixedValueSupport
Constructors
ObjectField()
Constructor.
Declaration
public ObjectField()
ObjectField(String)
Constructor.
Declaration
public ObjectField(string label)
Parameters
Type | Name | Description |
---|---|---|
String | label |
Fields
inputUssClassName
USS class name of input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name of labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
objectUssClassName
USS class name of object elements in elements of this type.
Declaration
public static readonly string objectUssClassName
Field Value
Type | Description |
---|---|
String |
selectorUssClassName
USS class name of selector elements in elements of this type.
Declaration
public static readonly string selectorUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Properties
allowSceneObjects
Allows scene objects to be assigned to the field.
Declaration
public bool allowSceneObjects { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
objectType
The type of the objects that can be assigned.
Declaration
public Type objectType { get; set; }
Property Value
Type | Description |
---|---|
Type |
Methods
SetValueWithoutNotify(Object)
Declaration
public override void SetValueWithoutNotify(Object newValue)
Parameters
Type | Name | Description |
---|---|---|
Object | newValue |
Overrides
UnityEngine.UIElements.BaseField<UnityEngine.Object>.SetValueWithoutNotify(UnityEngine.Object)
UpdateMixedValueContent()
Declaration
protected override void UpdateMixedValueContent()
Overrides
UnityEngine.UIElements.BaseField<UnityEngine.Object>.UpdateMixedValueContent()