增加A2WToolBox工具集,增加Launch场景核LaunchPanel

This commit is contained in:
Wurui
2025-11-08 11:06:48 +08:00
parent 3e92e5684a
commit 3b43829e85
726 changed files with 87807 additions and 215 deletions

View File

@@ -0,0 +1,53 @@
using UnityEngine;
namespace NaughtyAttributes.Test
{
public class AnimatorParamTest : MonoBehaviour
{
public Animator animator0;
[AnimatorParam("animator0")]
public int hash0;
[AnimatorParam("animator0")]
public string name0;
public AnimatorParamNest1 nest1;
[Button("Log 'hash0' and 'name0'")]
private void TestLog()
{
Debug.Log($"hash0 = {hash0}");
Debug.Log($"name0 = {name0}");
Debug.Log($"Animator.StringToHash(name0) = {Animator.StringToHash(name0)}");
}
}
[System.Serializable]
public class AnimatorParamNest1
{
public Animator animator1;
private Animator Animator1 => animator1;
[AnimatorParam("Animator1", AnimatorControllerParameterType.Bool)]
public int hash1;
[AnimatorParam("Animator1", AnimatorControllerParameterType.Float)]
public string name1;
public AnimatorParamNest2 nest2;
}
[System.Serializable]
public class AnimatorParamNest2
{
public Animator animator2;
private Animator GetAnimator2() => animator2;
[AnimatorParam("GetAnimator2", AnimatorControllerParameterType.Int)]
public int hash1;
[AnimatorParam("GetAnimator2", AnimatorControllerParameterType.Trigger)]
public string name1;
}
}