MinecraftECS
MinecraftECS copied to clipboard
Encounter InvalidOperationException when enter play mode in Unity 2022.2.11
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/[email protected]/Unity.Entities/Iterators/EntityQuery.cs:1447)
Unity.Entities.EntityQuery.GetSingleton[T] () (at ./Library/PackageCache/[email protected]/Unity.Entities/Iterators/EntityQuery.cs:2657)
BlockSpawningSystem.OnUpdate (Unity.Entities.SystemState& state) (at Assets/Scripts/Common/WorldGeneratorPrefabs.cs:270)