Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo doesn't work #35

Open
unphased opened this issue Feb 2, 2021 · 3 comments
Open

Demo doesn't work #35

unphased opened this issue Feb 2, 2021 · 3 comments

Comments

@unphased
Copy link

unphased commented Feb 2, 2021

I'm really interested in using this tool to add some easy to use controls to my app, but there are a number of problems:

@ashleymvanduzer
Copy link

import withControls from react-three-gui, assign it to a new variable and pass it the Canvas element like below.

const WrappedCanvas = withControls(Canvas)

then in App() use WrappedCanvas where you would normally use Canvas and it should work.

@unphased
Copy link
Author

unphased commented Feb 8, 2021

I definitely tried that. I appreciate you explaining that clearly, as it is something that would be easy to miss. I tried it and even Typescript was happy with it. But it did not work. I get a blank draggable GUI element above the canvas. I think this project is dead to be honest. I will be using https://github.com/pmndrs/use-tweaks

@ashleymvanduzer
Copy link

ashleymvanduzer commented Feb 8, 2021

A shame it's not working for you. I was having the same issue when I first used it as well actually but managed to figure it out, but unfortunately I can't remember what the solution was exactly lol. After replying to your post I noticed you specifically mention withControls. In any case it seems like you've found a great alternative with tweaks (which I will definitely be trying out!) but if you want me to take a look at the code you're having trouble with feel free to let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants