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

How to use a normal Canvas within this? (or how to do onCreated) #34

Open
PhilAndrew opened this issue Jan 31, 2021 · 0 comments
Open

Comments

@PhilAndrew
Copy link

PhilAndrew commented Jan 31, 2021

I wish to use onCreated from the normal Canvas, I usually did it like this:

export default function App() {
  return (
    <Canvas onCreated={({ gl }) => void (gl.localClippingEnabled = true)}>
...

How can I do it within react-three-gui? The reason is that I want to do the onCreated as above.

@PhilAndrew PhilAndrew changed the title How to use a normal Canvas within this? How to use a normal Canvas within this? (or how to do onCreated) Jan 31, 2021
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

1 participant