예제 #1
0
 /// <summary>Creates an animation clip with specified curves.</summary>
 /// <param name="curves">Curves to initialize the animation with.</param>
 /// <param name="isAdditive">
 /// Determines does the clip contain additive curve data. This will change the behaviour how is the clip blended with
 /// other animations.
 /// </param>
 /// <param name="sampleRate">
 /// If animation uses evenly spaced keyframes, number of samples per second. Not relevant if keyframes are unevenly
 /// spaced.
 /// </param>
 /// <param name="rootMotion">
 /// Optional set of curves that can be used for animating the root bone. Not used by the animation system directly but is
 /// instead provided to the user for manual evaluation.
 /// </param>
 public AnimationClip(AnimationCurves curves, bool isAdditive = false, uint sampleRate = 1, RootMotion rootMotion = null)
 {
     Internal_create0(this, curves, isAdditive, sampleRate, rootMotion);
 }
예제 #2
0
 private static extern void Internal_create0(AnimationClip managedInstance, AnimationCurves curves, bool isAdditive, uint sampleRate, RootMotion rootMotion);