I have multiple ui documents to represent various HUD elements like health bar.
There is one ui document per health bar (they are positioned using enemy world position).
I want to be able to show health bar when enemy takes damage and hide them when enemy unit does not take damage for at least 5 seconds.
Question is - what is the good way to hide and show them?
Should I just disable or enable UIDocument component? Or keep all documents enabled, but set root visual element visible to false? Is it very heavy to enable or disable ui document per frame basis?