Beispiel #1
0
 /// <summary>
 /// Blend four animation clips between each other using bilinear interpolation. Unlike normal animations these
 /// animations are not advanced with the progress of time, and is instead expected the user manually changes the
 /// <see cref="t"/> parameter.
 /// </summary>
 /// <param name="info">Information about the clips to blend.</param>
 /// <param name="t">Parameter that controls the blending, in range [(0, 0), (1, 1)]. t = (0, 0) means top left
 ///                 animation has full influence, t = (0, 1) means top right animation has full influence,
 ///                 t = (1, 0) means bottom left animation has full influence, t = (1, 1) means bottom right
 ///                 animation has full influence.
 ///                 </param>
 public void Blend2D(Blend2DInfo info, Vector2 t)
 {
     if (_native != null)
     {
         _native.Blend2D(info, t);
     }
 }
        public void Blend2D(Blend2DInfo info, Vector2 t)
        {
            if (info == null)
            {
                return;
            }

            Internal_Blend2D(mCachedPtr, info, ref t);
        }
 private static extern void Internal_blend2D(IntPtr thisPtr, ref Blend2DInfo info, ref Vector2 t);
 /// <summary>
 /// Blend four animation clips between each other using bilinear interpolation. Unlike normal animations these animations
 /// are not advanced with the progress of time, and is instead expected the user manually changes the <paramref
 /// name="t"/> parameter.
 /// </summary>
 /// <param name="info">Information about the clips to blend.</param>
 /// <param name="t">
 /// Parameter that controls the blending, in range [(0, 0), (1, 1)]. t = (0, 0) means top left animation has full
 /// influence, t = (1, 0) means top right animation has full influence, t = (0, 1) means bottom left animation has full
 /// influence, t = (1, 1) means bottom right animation has full influence.
 /// </param>
 public void Blend2D(Blend2DInfo info, Vector2 t)
 {
     Internal_blend2D(mCachedPtr, ref info, ref t);
 }
Beispiel #5
0
 /// <summary>
 /// Blend four animation clips between each other using bilinear interpolation. Unlike normal animations these
 /// animations are not advanced with the progress of time, and is instead expected the user manually changes the
 /// <see cref="t"/> parameter.
 /// </summary>
 /// <param name="info">Information about the clips to blend.</param>
 /// <param name="t">Parameter that controls the blending, in range [(0, 0), (1, 1)]. t = (0, 0) means top left
 ///                 animation has full influence, t = (0, 1) means top right animation has full influence, 
 ///                 t = (1, 0) means bottom left animation has full influence, t = (1, 1) means bottom right
 ///                 animation has full influence.
 ///                 </param>
 public void Blend2D(Blend2DInfo info, Vector2 t)
 {
     switch (state)
     {
         case State.Active:
             _native.Blend2D(info, t);
             break;
     }
 }