Version: 2023.1
public static EditorCurveBinding DiscreteCurve (string inPath, Type inType, string inPropertyName);

参数

inPath 要动画化的对象的变换组件路径。
inType 要动画化的对象的类型。
inPropertyName 要在对象上动画化的属性的名称。

描述

为不应插值的曲线创建预配置的绑定。

Use discrete curves for properties with discontinuous values, or for values that should not be interpolated. For example, use EditorCurveBinding.DiscreteCurve for enums or hashes. Discrete curves only support properties of type Int (with the DiscreteEvaluation attribute) or Enum. If you attempt to bind discrete curves to other types, a warning will be logged and a default interpolated float curve binding will be returned (see EditorCurveBinding.FloatCurve).