Search Unity

[Solved] Convert and Destroy doesn't render converted Entity

Discussion in 'Data Oriented Technology Stack' started by craig4android, Feb 4, 2020.

  1. craig4android

    craig4android

    Joined:
    May 8, 2019
    Posts:
    102
    the game Object is converted but there is no render entity applied and I get a warning



    Code (CSharp):
    1. Internal: deleting an allocation that is older than its permitted lifetime of 4 frames (age = 5)
    2. Unity.Collections.LowLevel.Unsafe.UnsafeUtility:Free(Void*, Allocator)
    3. Unity.Entities.EntityCommandBufferData:DestroyConcurrentAccess() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/EntityCommandBuffer.cs:374)
    4. Unity.Entities.EntityCommandBuffer:Dispose() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/EntityCommandBuffer.cs:871)
    5. Unity.Entities.EntityCommandBufferSystem:FlushPendingBuffers(Boolean) (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/EntityCommandBufferSystem.cs:249)
    6. Unity.Entities.EntityCommandBufferSystem:OnUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/EntityCommandBufferSystem.cs:188)
    7. Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystem.cs:102)
    8. Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemBase.cs:301)
    9. Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemGroup.cs:109)
    10. Unity.NetCode.ServerSimulationSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.netcode@0.0.4-preview.0/Runtime/ClientServerWorld/ServerSimulationSystemGroup.cs:67)
    11. Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystem.cs:102)
    12. Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemBase.cs:301)
    13. Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemGroup.cs:109)
    14. Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystem.cs:102)
    15. Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemBase.cs:301)
    16. Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemGroup.cs:109)
    17. Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystem.cs:102)
    18. Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ComponentSystemBase.cs:301)
    19. Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/com.unity.entities@0.3.0-preview.4/Unity.Entities/ScriptBehaviourUpdateOrder.cs:152)
    20.  
    Unity 2019.3.06f
     

    Attached Files:

  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    1,708
    Hybrid Renderer package.
     
  3. craig4android

    craig4android

    Joined:
    May 8, 2019
    Posts:
    102
    sorry for answering so late, I was a little bit frustrated, but your solution works, ty
     
unityunity