- Home /
Project Tiny no DisplayInfo Singleton
I just updated to Project Tiny 0.31.0-preview 24 and am getting the following error about not being able to get the DisplayInfo singleton component int he CameraComponent class. I can still run the game and interact with it but am getting this error every frame.
InvalidOperationException: GetSingleton() requires that exactly one Unity.Tiny.DisplayInfo exist that match this query, but there are 0.
Unity.Entities.EntityQueryImpl.GetSingleton[T] () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/Iterators/EntityQuery.cs:759)
Unity.Entities.EntityQuery.GetSingleton[T] () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/Iterators/EntityQuery.cs:1341)
Unity.Tiny.Rendering.UpdateCameraMatricesSystem.OnUpdate () (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering/CameraComponents.cs:352)
Unity.Entities.SystemBase.Update () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/SystemBase.cs:413)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:435)
UnityEngine.Debug:LogException(Exception) Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:440)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:387)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystem.cs:113)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ScriptBehaviourUpdateOrder.cs:333)
Is there anything I need to do to get this resolved?
Thanks in advance!
Your answer
Follow this Question
Related Questions
Adding RequireComponent breaks script 1 Answer
Acessing a Script Instance from Another Object 3 Answers
Singleton code and Unify down. 1 Answer
How can I get a component data from an entity inside a JobComponentSystem? 1 Answer
Does the Parent component get removed from Entity if its Value is not set? 1 Answer