animation.setLoop( THREE.LoopOnce ) #1247
Unanswered
carmandale
asked this question in
Q&A
Replies: 1 comment 1 reply
-
That might be a typescript error? Have you compared three-TS-types with the threejs docs? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using R3F and drei GLTFJSX. I need an animation to only play once.
My file is typescript from https://gltf.pmnd.rs
I am using actions.(name of animation).play() and that works as expected. I want to set it to loop once.
but if I do
actions.(name of animation).setLoop(THREE.LoopOnce);
I get an error Expected 2 arguments, but got 1. TS2554Does anyone know the proper way to set an animation to loop once?
thanks,
Dale
Beta Was this translation helpful? Give feedback.
All reactions