GLTFLoader.js:219 TypeError: Cannot read properties of undefined (reading 'uuid') at AnimationMixer.clipAction 오류 [three.js]

joohyo1·2024년 1월 27일
post-thumbnail

하자이너가 보낸 3D 모델 애니메이션 적용중에 이러한 오류가 발생하였다!

GLTFLoader.js:219 TypeError: Cannot read properties of undefined (reading 'uuid')
at AnimationMixer.clipAction

action = mixer.clipAction(model1.animations[0]);

원인은 이 코드에 있다. animations[0]의 정보를 읽을 수 없다고 해서, 3D 객체를 콘솔에 출력해보았다.

오.. 역시 animations 정보가 비어있군.
하자이너님께 다시 담아서 보내달라고 했다!


three.js 재밌다... 시간이 많이 들어서 그렇지... 금 같은 시간 허허 😅 지금은 잘 모르다보니 디자이너님이 질문하거나, 작동이 안될 때 내 탓인지 모델 탓인지 판단이 안돼서 문제다. 더 분발하자 아자아자
profile
트라이 에브리띠이잉

0개의 댓글