firtoz / react-three-renderer

Render into a three.js canvas using React.
https://toxicfork.github.com/react-three-renderer-example/
MIT License
1.49k stars 155 forks source link

onClick handler for sprite #217

Open Robinnnnn opened 6 years ago

Robinnnnn commented 6 years ago

I'm trying to create a 3D panorama experience with some interactive buttons within it.

Is there a way to listen for click events on a <sprite>? Assigning onClick as a prop reveals: Warning: Foreign prop onClick found in sprite.