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 9 minutesLast updated 5 days ago

Definition

[Icon("UIToolkit/Icons/ObjectField.png")][UxmlElement(visibility = LibraryVisibility.Visible)]public class ObjectField : BaseField<Object>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Object>

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

allowBuiltinResourcesShows or hides built-in resources in the object selector popup. True by default to show built-in resources.
allowSceneObjectsAllows scene objects to be assigned to the field.
objectTypeThe type of the objects that can be assigned.

Inheritance

Inherited Members