Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public class ObjectField : BaseField<Object>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IBindable, INotifyValueChanged<Object>, IMixedValueSupport

Static Fields

Value

Description

inputUssClassNameUSS class name of input elements in elements of this type.
labelUssClassNameUSS class name of labels in elements of this type.
objectUssClassNameUSS class name of object elements in elements of this type.
selectorUssClassNameUSS class name of selector elements in elements of this type.
ussClassNameUSS class name of elements of this type.

Constructors

Constructor

Description

ObjectField()Constructor.
ObjectField(System.String)Constructor.

Properties

Property

Description

allowSceneObjectsAllows scene objects to be assigned to the field.
objectTypeThe type of the objects that can be assigned.

Inheritance

Inherited Members