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

[v0.4] QueryOperator requires all given Components to have at least 1 occurrence #180

Open
pimdewit opened this issue Mar 17, 2025 · 1 comment

Comments

@pimdewit
Copy link

pimdewit commented Mar 17, 2025

const entities = query(world, [Or(Mesh, InstancedMesh, Group)]);

It seems that on 0.4 the above query only works if the world has at least 1 occurrence of every Component listed in the world.

e.g. if there is no entity with the Group component in the world, it always returns an empty arr, even if Mesh or InstancedMesh are present.

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
@pimdewit and others