본문 바로가기
앱 개발/Unity, C#

[Unity][Animancer] Layer pause / resume 하는 법

by 마라턍 2024. 12. 13.

항상 생각하는 거지만 매뉴얼을 잘 보자..

 

Animancer - Playing Animations

After you Download Animancer, you can add an AnimancerComponent to your model and control it with a script: Don't create an Animator Controller like you normally would. Animancer doesn't need them. Add a reference to the AnimancerComponent (let’s call it

kybernetik.com.au

 

        private void OnPlayButtonClicked()
        {
            if (_player == null || _player.Layers[1].CurrentState == null) return;
            _player.Layers[1].CurrentState.IsPlaying = !playButton.IsSelected;
        }