UnityEditor.CurveEditorWindow.GetConstantKeys C# (CSharp) 메소드

GetConstantKeys() 정적인 개인적인 메소드

static private GetConstantKeys ( float value ) : UnityEngine.Keyframe[]
value float
리턴 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