I have a container with a lot of Control in it that displays information on player profiles. This containers will regularly show and hide (Depending on the number of players facing the camera).
So I wonder if for performance reasons it was better to :
contener.dispose () then recreate if necessary
- contener.isVisible = false to hide it and contener.isVisible = true to display it.
I wonder if there is a lot of player info on the screen (not visible, but present on the scene) How much does it cost ?
with dispose (), does it cost more to recreate each time?
What is your opinion?
And do you have any idea how to display a GUI container when it sees an object and hide it when the camera does not see an object ?