랭귀지/Unity

[Unity]애니메이터에 등록된 애니메이션 목록 가져오기

유키공 2018. 4. 1. 09:30

유니티 애니메이터에 등록된 애니메이션 목록 가져오기

        AnimatorController anicontrol = mator.runtimeAnimatorController as AnimatorController;
        AnimationClip[] clips = anicontrol.animationClips;
        foreach (AnimationClip c in clips)
            Debug.Log(c.name);