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

Switch/Show of mesh as child of Canvas does not work #11

Open
vorth opened this issue Jun 3, 2023 · 0 comments
Open

Switch/Show of mesh as child of Canvas does not work #11

vorth opened this issue Jun 3, 2023 · 0 comments

Comments

@vorth
Copy link
Member

vorth commented Jun 3, 2023

https://codesandbox.io/p/sandbox/solid-three-with-switch-forked-d1jmmf?file=%2Fsrc%2FApp.jsx%3A41%2C7

Change the fragment (lines 18 & 41) to a <group>...</group>, and it will start working. The Switch doesn't work unless the parent is a valid Object3D, or something of that nature.

I have seen the same issue with <Show>.

@vorth vorth changed the title Switch (between meshes) as child of Canvas does not work Switch/Show of mesh as child of Canvas does not work Jun 3, 2023
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