Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[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:
    113
    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:
    2,028
    Hybrid Renderer package.
     
  3. craig4android

    craig4android

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