-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAnimatorControllerLayer.cs
33 lines (30 loc) · 1.43 KB
/
AnimatorControllerLayer.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
namespace UnityEngine
{
public class AnimatorControllerLayer
{
private int index;
private string name;
private float weight;
private AnimatorClipInfo[] currentAnimatorClipInfo;
private AnimatorStateInfo currentAnimatorStateInfo;
private AnimatorClipInfo[] nextAnimatorClipInfo;
private AnimatorStateInfo nextAnimatorStateInfo;
public int Index => index;
public string Name => name;
public float Weight => weight;
internal AnimatorControllerLayer(int index, string name, float weight, AnimatorClipInfo[] currentAnimatorClipInfo, AnimatorStateInfo currentAnimatorStateInfo, AnimatorClipInfo[] nextAnimatorClipInfo, AnimatorStateInfo nextAnimatorStateInfo)
{
this.index = index;
this.name = name;
this.weight = weight;
this.currentAnimatorClipInfo = currentAnimatorClipInfo;
this.currentAnimatorStateInfo = currentAnimatorStateInfo;
this.nextAnimatorClipInfo = nextAnimatorClipInfo;
this.nextAnimatorStateInfo = nextAnimatorStateInfo;
}
public override string ToString()
{
return $"{{Index: {index} | Name: {name} | Weight: {weight} | CurrentAnimatorClipInfoCount: {currentAnimatorClipInfo.Length} | CurrentAnimatorStateInfo: {currentAnimatorStateInfo.fullPathHash} | NextAnimatorClipInfoCount: {nextAnimatorClipInfo.Length} | NextAnimatorStateInfo: {nextAnimatorStateInfo.fullPathHash}}}";
}
}
}