Skip to content

Encounter InvalidOperationException when enter play mode in Unity 2022.2.11 #7

Description

@laicasaane

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions