본문 바로가기

유니티

유니티에서 블렌더의 애니메이션이 Scene파일로만 나타날 때 해결법

유니티 프로젝트 폴더에 블렌더 파일을 저장하면 편리하게 임포트 할 수 있다.

그런데 3개의 애니메이션 작업한 것들은 보이지 않고 Scene 이라고 적혀져 있는 파일 하나만 임포트가 되었다.

 

이렇게 나와야 하는데

해결방법은 간단하다.

 

 

 

유니티가 설치된 폴더를 찾고

Data/Tools 폴더 안에 있는

Unity-BlenderToFBX.py 파일을 조금 수정해주면 된다.

 

 

bake_anim_use_all_actions 를

False에서 True로 변경해주면 되는데

 

수정하려고하면 경우에 따라 권한문제로 에러창이 나타날 수 있다.

이 때는 파이썬 쉘을 관리자모드로 실행해서 수정하면 된다.

 

 

--- 작업 환경 ---

유니티 2019.3~

블렌더 2.8

 

이하 내용을 유니티 커뮤니티에서도 확인할 수 있다.

 

https://issuetracker.unity3d.com/issues/using-multiple-animation-clips-in-blender-not-all-animation-clips-are-imported-using-a-blend-file

 

Unity IssueTracker - Using multiple animation clips in Blender not all Animation clips are imported using a .blend file

To reproduce: 1. Create a new project 2. Import attached "28blender.blend" file 3. In Editor select the "28blender.blend" file 4. In...

issuetracker.unity3d.com