UnityEngine.AnimationCurve.SmoothTangents C# (CSharp) Method

SmoothTangents() private method

private SmoothTangents ( int index, float weight ) : void
index int
weight float
return void
        public extern void SmoothTangents(int index, float weight);
        /// <summary>

Usage Example

コード例 #1
1
    //Create default curve for the dynamic bias
    private AnimationCurve defineCurve()
    {
        AnimationCurve temp = new AnimationCurve();
        temp.AddKey(-1, -1);
        temp.AddKey(-0.55f, -0.95f);
        temp.AddKey(-0.001f, -0.5f);
        temp.AddKey(0.001f, 0.5f);
        temp.AddKey(0.55f, 0.95f);
        temp.AddKey(1, 1);
        temp.SmoothTangents(2, 1);
        temp.SmoothTangents(3, -1);

        return temp;
    }
All Usage Examples Of UnityEngine.AnimationCurve::SmoothTangents