Replies: 1 comment 1 reply
-
everything you have in your scene can receive clicks. <primitive object={scene} onClick={e => console.log("you clicked", e.object)} /> <mesh onClick={e => console.log("you clicked", e.object)} geometry={...} material={...} /> <group onClick={e => console.log("you clicked", e.object)} />
<mesh ... />
<mesh ... /> |
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
-
Hi guys I want to ask,
I have simple mesh layout editor and I want to activate models on click on them (I use useGLTF hook).
Beta Was this translation helpful? Give feedback.
All reactions