기술 자료

Unity Engine


Unity Engine


Comparison of the binding systems

Compares the runtime binding and the SerializedObject data binding.
읽는 시간 1분최근 업데이트: 한 달 전

The following table compares the SerializedObject data binding and runtime binding:

Comparison

Runtime binding

SerializedObject data binding

UIRuntime UI, and Editor UI without serialized data.Editor UI
Data typesSupports any plain C#
object
as a data source.
Supports only the data types supported by
SerializedProperty
.
Binding targetCan target multiple properties of the same control.Targets only the
value
property of a
INotifyValueChanged<T>
control.
Property paths for a list or an arrayUses the syntax of
Path.To.List[2]
.
Uses the syntax of
Path.To.List.Array.data[2]
.
ExtensibilityYou can create your own binding types and attributes.Not extensible.

Additional resources