Version: 2021.1

BindingExtensions

class in UnityEditor.UIElements

切换到手册

描述

提供 VisualElement 扩展方法,从而实现 INotivyValueChanged 字段和 SerializedObjects 之间的数据绑定。

静态变量

prefabOverrideUssClassName在预制件覆盖模式下添加到元素的 USS 类。

静态函数

Bind将 SerializedObject 绑定到元素层级视图中的字段。
BindProperty将属性绑定到字段并同步它们的值。此方法使用字段的绑定路径来查找属性。
TrackPropertyValueChecks the property values for changes every frame and invokes a callback when the property value changes. If no callback is specified, a SerializedPropertyChangeEvent is sent to the target element.
Unbind断开绑定到元素层级视图中的字段的所有属性。

Did you find this page useful? Please give it a rating: