Version: 2020.3
public static SerializedProperty BindProperty (UIElements.IBindable field, SerializedObject obj);

参数

field 要编辑属性的 VisualElement 字段。
obj 包含可绑定 (bindable) 属性的根 SerializedObject。

返回

SerializedProperty 拥有绑定属性的序列化对象。

描述

将属性绑定到字段并同步它们的值。此方法使用字段的绑定路径来查找属性。


public static void BindProperty (UIElements.IBindable field, SerializedProperty property);

参数

field 要编辑属性的 VisualElement 字段。
property 要绑定的 SerializedProperty。

描述

将属性绑定到字段并同步它们的值。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961