Version: 2022.2

EditorCurveBinding.SerializeReferenceCurve(string,Type,string)

切换到手册

参数

inPath 要动画化的对象的变换组件路径。
inType The type of the MonoBehaviour managing the SerializeReference instance to animate.
refID The reference id of the SerializeReference instance to animate. See Also: ManagedReferenceUtility.GetManagedReferenceIdForObject
inPropertyName 要在对象上动画化的属性的名称。

描述

Creates a preconfigured binding for a curve that points to a SerializeReference instance field.

Fields on objects referenced with SerializeReference can be animated when the host object is derived from MonoBehaviour. The animation binding to the referenced object will be based on the reference id instead of the property path, which makes it possible to correctly resolve the animation even when there are changes in the path leading to the referenced object. For example, if the object is referenced from within an array, the animation is retained even if the position of the object within the array changes.

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