-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCraMain.cs
66 lines (55 loc) · 1.34 KB
/
CraMain.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
#if UNITY_EDITOR
using UnityEditor;
#endif
public class CraMain
{
CraPlaybackManager Players;
CraAnimatorManager Animators;
public CraMain()
{
Players = CraPlaybackManager.Get();
Animators = CraAnimatorManager.Get();
#if UNITY_EDITOR
EditorApplication.quitting += Destroy;
#endif
}
public void Tick()
{
Players.Tick();
Animators.Tick();
}
public void Clear()
{
Players.Clear();
Animators.Clear();
}
public void Destroy()
{
Players.Destroy();
Players = null;
Animators.Destroy();
Animators = null;
}
}
public class CraStatistics
{
public CraMeasure PlayerData;
public CraMeasure ClipData;
public CraMeasure BakedClipTransforms;
public CraMeasure BoneData;
public CraMeasure Bones;
}
public static class CraSettings
{
public const int STATE_NONE = -1;
public const int MAX_PLAYERS = 32768;
public const int MAX_LAYERS = 4096;
public const int MAX_ANIMATORS = 2048;
public const int MAX_PLAYER_DATA = MAX_PLAYERS / 4;
public const int MAX_CLIP_DATA = 256;
public const int MAX_BAKED_CLIP_TRANSFORMS = 65535 * 4;
public const int MAX_BONE_DATA = 65535 * 4;
public const int MAX_BONES = 65535 * 4;
public static Func<string, int> BoneHashFunction;
}