How can I use onClick on mesh? #511
kaeltran16
started this conversation in
General
Replies: 1 comment
-
the basic demo on the GH front has click events: https://codesandbox.io/s/r3f-basic-demo-rrppl0y8l4 if yours doesnt work then thats most likely a css issue, maybe your canvas is behind another div, maybe it has pointer-events: none, etc. btw suspense is for async assets, when you have something that needs useLoader. otherwise it will do nothing, the mesh alone doesn't have a delay. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi guys,
I just started using react-three-fiber and three.js. I read the document and there are events on mesh but when I tried it on simple example, it didn't seem to work. Can anyone help me, thanks.
My example:
Beta Was this translation helpful? Give feedback.
All reactions