Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Problems running samples as is

Discussion in 'Project Tiny' started by Surreal, Dec 6, 2020.

  1. Surreal

    Surreal

    Joined:
    Dec 10, 2011
    Posts:
    29
    getting this error trying to run the TinyKitchen example

    InvalidOperationException: GetSingleton<TinyKitchen.Game>() requires that exactly one TinyKitchen.Game 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.Entities.ComponentSystemBase.GetSingleton[T] () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemBase.cs:475)
    TinyKitchen.DestroyFood.OnUpdate () (at Assets/Scripts/Systems/DestroyFood.cs:16)
    Unity.Entities.ComponentSystem.Update () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystem.cs:113)
    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)
     
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Are there any errors in the editor after building the game?
    seems that the conversion system didn't run for some reason
     
  3. Surreal

    Surreal

    Joined:
    Dec 10, 2011
    Posts:
    29
    sorry -- perhaps I missed a step -- Play in editor is not supported?
     
  4. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    916
    Correct, currently Play in editor is not supported with Project Tiny.
    We advice you to test any modifications by creating and running a Project Tiny executable.
     
  5. nights007

    nights007

    Joined:
    Aug 12, 2014
    Posts:
    17
    I dont see how you could develop a game if you have to wait 5 minutes for each modification, regardless of size?
     
  6. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Use dotnet builds for iteration
    the first time you build it takes time because we cache the runtime assemblies but for iteration, they shouldn't take 5 minutes