Battle Talent  V11
Static Public Member Functions | List of all members
CrossLink.Util Class Reference

Static Public Member Functions

static T GetCopyOf< T > (this Component comp, T other)
 
static float AngleSigned (Vector3 from, Vector3 to, Vector3 axis)
 
static Vector3 GetBezierPoint (float t, Vector3 start, Vector3 center, Vector3 end, out Vector3 tangent)
 
static AnimationClip GetClip (this Animator animator, string clipName)
 
static float ClipFrames (this AnimationClip clip)
 
static void TryAddAnimationEvent (this Animator animator, string clipName, string eventName, int triggerIndex)
 Add animation event More...
 

Member Function Documentation

◆ GetBezierPoint()

static Vector3 CrossLink.Util.GetBezierPoint ( float  t,
Vector3  start,
Vector3  center,
Vector3  end,
out Vector3  tangent 
)
static
Parameters
ttime [0, 1]
startstart point
centercenter point
endend point
tangentpoint tangent

◆ TryAddAnimationEvent()

static void CrossLink.Util.TryAddAnimationEvent ( this Animator  animator,
string  clipName,
string  eventName,
int  triggerIndex 
)
static

Add animation event

Parameters
clipNameclip name
eventName
triggerIndextrigger frame, -1 is the last frame