I am trying to deactivate an entity with EntityManager.SetEnabled(entity, false). When I do so, the entity does deactivate (it stops moving), but it is still rendered on the screen in the same position. How do I make it stop rendering also? Thanks.
What renderer is it? HybridRender will stop render that entity.
Is your render component on that entity or is it on its child entity?
If it’s on a child entity and not instantiated from a prefab. you need to Create a linked group.
https://forum.unity.com/threads/list-of-things-dots-can-do-and-you-might-not-know-yet.973605/
If this is not solving your problem. Your renderer could be a Hybrid Object (UnityEngine.Component)
Sprite Renderer, LineRenderer, TrailRenderer, PartcalSytemRender, are all Hybrid Object.
And Skinned mesh renderer is not working for now as HybridRenderer is hacking them.
OMG, It’s too much info
Thanks for the help! Your comment helped me figure it out somehow, the problem was actually that I’m using the new netcode and I was only disabling it in the server world, not the client world.