Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyField

A SerializedProperty wrapper VisualElement that, on Bind(), will generate the correct field elements with the correct binding paths. For more information, refer to UXML element PropertyField.
Read time 8 minutesLast updated 9 days ago

Definition

[UxmlElement(visibility = LibraryVisibility.Visible)][Icon("UIToolkit/Icons/PropertyField.png")]public class PropertyField : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable

Static Fields

Value

Description

inputUssClassNameUSS class name of input elements in elements of this type.
inspectorElementUssClassNameUSS class name of property fields in inspector elements
labelUssClassNameUSS class name of labels in elements of this type.
ussClassNameUSS class name of elements of this type.

Constructors

Constructor

Description

PropertyField()PropertyField constructor.
PropertyField(UnityEditor.SerializedProperty)PropertyField constructor.
PropertyField(UnityEditor.SerializedProperty,System.String)PropertyField constructor.

Properties

Property

Description

bindingBinding object that will be updated.
bindingPathPath of the target property to be bound.
labelOptionally overwrite the label of the generate property field. If no label is provided the string will be taken from the SerializedProperty.

Methods

Method

Description

RegisterValueChangeCallbackRegisters this callback to receive SerializedPropertyChangeEvent when a value is changed.

Inheritance

Inherited Members