Hey, so I'm relatively new to using ECS in Unity.
I am trying to make an RTS-like game with thousands of entities (possibly tens of thousands).
What are the best practices for trying to achieve a select/hover effect? I currently have a working system where I have a "HoverSelectRing" that is a child to every unit. Upon hovering, I remove the "DisableRendering" component from this child. I add this "DisableRendering" component back when I am not hovering anymore.
I am concerned regarding the performance since this is a structural change across thousands of units. There is not much material online regarding this behavior. I have tried baking my own "HoverMaterial" and "SelectMaterial" in an authoring component in an attempt to get access to the "MaterialMeshInfo" to toggle it on and off, but am a bit lost on where to go next.
Is my starting approach wrong? Is the performance hit from the structural changes even big?