How can I stop rendering when I click on a button, and resume it after executing another action #920
Unanswered
nestorchura2019
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
How can I stop rendering when I click on a button, and resume it after executing another action.
in three.js I could do it with
to resume rendering
this.renderer.setAnimationLoop(this.render.bind(this));
to stop rendering
this.renderer.setAnimationLoop(null);
How can stop the render when raycast(clic) the cube and resume when click on the cube again
https://codesandbox.io/s/r3f-start-stop-render-7mkli?file=/src/App.js

Beta Was this translation helpful? Give feedback.
All reactions