Closed ufon closed 7 years ago
That component is probably outdated, you'll need to get it updated. Maybe file an issue?
Make sure you're running code within A-Frame components so that the canvas and scene are initialized: https://aframe.io/docs/0.4.0/guides/using-javascript-and-dom-apis.html#where-to-place-javascript-code-for-a-frame
Hello! I'm try to work some mouse look component but have a problem. (component: https://github.com/alexrkass/no-click-look-controls) When i try get canvas element i have undefined. but a-scene i get it perfectly.
in react component i have:
Thank u for any help!