GetIndex() публичный Метод

public GetIndex ( ) : int
Результат int
 public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
 {
     foreach (CurveWrapper animationCurve in curveEditor.animationCurves)
     {
         if (animationCurve.binding == keyframe.curve.binding && keyframe.GetIndex() >= 0)
         {
             return(new CurveSelection(animationCurve.id, curveEditor, keyframe.GetIndex()));
         }
     }
     return((CurveSelection)null);
 }
        public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
        {
            int hashCode = keyframe.curve.GetHashCode();

            foreach (CurveWrapper wrapper in curveEditor.animationCurves)
            {
                if ((wrapper.id == hashCode) && (keyframe.GetIndex() >= 0))
                {
                    return(new CurveSelection(wrapper.id, keyframe.GetIndex()));
                }
            }
            return(null);
        }
 public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
 {
     CurveWrapper[] animationCurves = curveEditor.animationCurves;
     for (int i = 0; i < animationCurves.Length; i++)
     {
         CurveWrapper curveWrapper = animationCurves[i];
         if (curveWrapper.binding == keyframe.curve.binding && keyframe.GetIndex() >= 0)
         {
             return(new CurveSelection(curveWrapper.id, curveEditor, keyframe.GetIndex()));
         }
     }
     return(null);
 }
        public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
        {
            int hashCode = keyframe.curve.GetHashCode();

            CurveWrapper[] animationCurves = curveEditor.animationCurves;
            CurveSelection result;

            for (int i = 0; i < animationCurves.Length; i++)
            {
                CurveWrapper curveWrapper = animationCurves[i];
                if (curveWrapper.id == hashCode && keyframe.GetIndex() >= 0)
                {
                    result = new CurveSelection(curveWrapper.id, keyframe.GetIndex());
                    return(result);
                }
            }
            result = null;
            return(result);
        }
Пример #5
0
 public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
 {
     foreach (CurveWrapper wrapper in curveEditor.animationCurves)
     {
         if ((wrapper.binding == keyframe.curve.binding) && (keyframe.GetIndex() >= 0))
         {
             return new CurveSelection(wrapper.id, curveEditor, keyframe.GetIndex());
         }
     }
     return null;
 }
 public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
 {
   foreach (CurveWrapper animationCurve in curveEditor.animationCurves)
   {
     if (animationCurve.binding == keyframe.curve.binding && keyframe.GetIndex() >= 0)
       return new CurveSelection(animationCurve.id, curveEditor, keyframe.GetIndex());
   }
   return (CurveSelection) null;
 }