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

Encounter InvalidOperationException when enter play mode in Unity 2022.2.11 #7

Open
laicasaane opened this issue Mar 18, 2023 · 0 comments

Comments

@laicasaane
Copy link

laicasaane commented Mar 18, 2023

Here is the simplified stacktrace:

InvalidOperationException: GetSingleton<GameSettings>() requires that exactly one GameSettings exist that match this query, but there are 0.
Unity.Entities.EntityQueryImpl.GetSingleton[T] () (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.44/Unity.Entities/Iterators/EntityQuery.cs:1447)
Unity.Entities.EntityQuery.GetSingleton[T] () (at ./Library/PackageCache/com.unity.entities@1.0.0-pre.44/Unity.Entities/Iterators/EntityQuery.cs:2657)
BlockSpawningSystem.OnUpdate (Unity.Entities.SystemState& state) (at Assets/Scripts/Common/WorldGeneratorPrefabs.cs:270)
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