fix(InterestManagementBase): Hide WorldSpace Canvas in SetHostVisibility - #4005
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates the InterestManagementBase by adding logic to hide or show Canvas components along with AudioSource and Terrain components when SetHostVisibility is called.
- Added iteration over Canvas components in SetHostVisibility to toggle their enabled state.
- Ensured consistency with similar component toggling logic (AudioSource and Terrain).
|
I don't think AOI should depend on any type of UI system, that's a little bit too much of dependencies |
I just limited it to Canvas with WorldSpace selected, but just like lights and terrain and sounds and particles, UI can definitely exist in each subscene of additive scenes, or be out of range in distance, or be exclusive to team / match IM. WorldSpace UI could be healthbar or name tags on players too. It woudn't be right to have those floating around attached to nothing because they were on players in a different subscene. |
* fix(InterestManagementBase):Hide Canvas in SetHostVisibility Fixes #4003 * WorldSpace only

Tested by adding a world canvas with NI into Additive Levels subscene...works as expected.
Fixes #4003