DiscreteCurve(string, Type, string)
Creates a preconfigured binding for a curve where values should not be interpolated.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static EditorCurveBinding DiscreteCurve(string inPath, Type inType, string inPropertyName)
Parameters
Returns
Type | Description |
|---|---|
| EditorCurveBinding | The new EditorCurveBinding. |
Remarks
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 The default interpolated float curve binding. Refer to EditorCurveBinding.FloatCurve.