コード例 #1
0
 private static extern void Internal_TAnimationCurve(Vector2Curve managedInstance, KeyFrameVec2[] keyframes);
コード例 #2
0
 private static extern void Internal_TDistribution2(Vector2Distribution managedInstance, Vector2Curve curve);
コード例 #3
0
 private static extern void Internal_TDistribution3(Vector2Distribution managedInstance, Vector2Curve minCurve, Vector2Curve maxCurve);
コード例 #4
0
 /// <summary>Creates a new distribution that returns a random value in a range determined by two curves.</summary>
 public Vector2Distribution(Vector2Curve minCurve, Vector2Curve maxCurve)
 {
     Internal_TDistribution3(this, minCurve, maxCurve);
 }
コード例 #5
0
 /// <summary>Creates a new distribution that evaluates a curve.</summary>
 public Vector2Distribution(Vector2Curve curve)
 {
     Internal_TDistribution2(this, curve);
 }
コード例 #6
0
 private static extern AnimationCurve[] Internal_splitCurve2D(Vector2Curve compoundCurve);
コード例 #7
0
 /// <summary>Splits a Vector2 curve into two individual curves, one for each component.</summary>
 public static AnimationCurve[] SplitCurve2D(Vector2Curve compoundCurve)
 {
     return(Internal_splitCurve2D(compoundCurve));
 }
コード例 #8
0
 /// <summary>Constructs a new named animation curve.</summary>
 /// <param name="name">Name of the curve.</param>
 /// <param name="flags">Flags that describe the animation curve.</param>
 /// <param name="curve">Curve containing the animation data.</param>
 public NamedVector2Curve(string name, AnimationCurveFlags flags, Vector2Curve curve)
 {
     this.name  = name;
     this.flags = (AnimationCurveFlags)0;
     this.curve = curve;
 }