MinecraftECS icon indicating copy to clipboard operation
MinecraftECS copied to clipboard

Encounter InvalidOperationException when enter play mode in Unity 2022.2.11

Open laicasaane opened this issue 2 years ago • 0 comments

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)

laicasaane avatar Mar 18 '23 18:03 laicasaane