Battle Talent  V11
All Classes Namespaces Functions Variables Enumerations Properties
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
CrossLink.Util Class Reference

Public Types

enum class  LogType { Log , Warning , Error }
 
enum class  Peer { Both , Server , Client }
 

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...
 
static bool GetParamNameHash (this Animator animator, string paramName, ref int hash)
 
static void NetworkDebug (string log, Peer peer=Peer.Both, LogType logtype=LogType.Log)
 
static float ToDecibels (float multiplier)
 
static float FromDecibels (float db)
 
static float GetVoiceMlp (float volume)
 Local Mircophone voice volume range (0, 1) More...
 

Static Public Attributes

const float MinDecibels = -60f
 

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

◆ GetVoiceMlp()

static float CrossLink.Util.GetVoiceMlp ( float  volume)
static

Local Mircophone voice volume range (0, 1)

Parameters
volume

◆ 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