UnityEditor.EulerCurveCombinedRenderer.GetCurveOfComponent C# (CSharp) 메소드

GetCurveOfComponent() 공개 메소드

public GetCurveOfComponent ( int component ) : AnimationCurve
component int
리턴 AnimationCurve
        public AnimationCurve GetCurveOfComponent(int component)
        {
            switch (component)
            {
                case 0:
                    return this.eulerX;

                case 1:
                    return this.eulerY;

                case 2:
                    return this.eulerZ;
            }
            return null;
        }

Usage Example

예제 #1
0
 public AnimationCurve GetCurve()
 {
     return(renderer.GetCurveOfComponent(component));
 }