UnityEditor.CurveEditorWindow.GetConstantKeys C# (CSharp) Method

GetConstantKeys() static private method

static private GetConstantKeys ( float value ) : UnityEngine.Keyframe[]
value float
return UnityEngine.Keyframe[]
        internal static Keyframe[] GetConstantKeys(float value)
        {
            Keyframe[] keys = new Keyframe[] { new Keyframe(0f, value, 0f, 0f), new Keyframe(1f, value, 0f, 0f) };
            SetSmoothEditable(ref keys);
            return keys;
        }

Usage Example

 private static List <DoubleCurve> GetSignedDoubleCurveDefaults()
 {
     return(new List <DoubleCurve>()
     {
         new DoubleCurve(new AnimationCurve(CurveEditorWindow.GetConstantKeys(-1f)), new AnimationCurve(CurveEditorWindow.GetConstantKeys(1f)), true)
     });
 }
All Usage Examples Of UnityEditor.CurveEditorWindow::GetConstantKeys