获取Animator中的Parameters参数(Trigger,Int,Float等类型)

UnityAPI:
Animator.parameters; //获取所有参数

获取Layer层
UnityAPI:
Animator.layerCount;//获取Layer层数量
Animator.GetLayerName(int layerIndex); //获取Layer层名称

博客介绍了在Unity中获取Animator相关信息的方法。可通过Animator.parameters获取Animator中的所有参数,包括Trigger、Int、Float等类型;还能使用Animator.layerCount获取Layer层数量,用Animator.GetLayerName获取Layer层名称。
获取Animator中的Parameters参数(Trigger,Int,Float等类型)

UnityAPI:
Animator.parameters; //获取所有参数

获取Layer层
UnityAPI:
Animator.layerCount;//获取Layer层数量
Animator.GetLayerName(int layerIndex); //获取Layer层名称

2824
1万+
4487
2万+

被折叠的 条评论
为什么被折叠?