Files
2025-06-04 16:13:32 +09:30

10 lines
272 B
C#

using UnityEngine;
public class AnimationResetRigWeightState : StateMachineBehaviour
{
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
{
animator.GetComponent<RigWeightOverTime>()?.SetWeight(0);
}
}