Version: 2020.2

AnimationMode.AddPropertyModification

切换到手册
public static void AddPropertyModification (EditorCurveBinding binding, PropertyModification modification, bool keepPrefabOverride);

参数

binding 要修改的动画剪辑曲线的描述。
modification 要修改的对象属性。
keepPrefabOverride 指示当目标对象是预制件的实例时,是否保留修改。

描述

将属性标记为当前正在动画化。

This method uses the animation recording system to add a property to the Animation mode snapshot. A property is added when the user modifies its value through scripting, in the Inspector window, and so on.