MirrorNetworking / Mirror

#1 Open Source Unity Networking Library
https://mirror-networking.com
MIT License
5.25k stars 775 forks source link

fix(InterestManagementBase): Improve SetHostVisibility #3949

Open MrGadget1024 opened 3 days ago

MrGadget1024 commented 3 days ago

Tested in Additive Levels example by adding terrains with tree details, spot lights, audio sources, and particle systems to each of the two subscenes. Turn sound on when playing the video below.

https://github.com/user-attachments/assets/d06a355a-9f46-45f5-83bb-297e5a2e6974

miwarnec commented 9 hours ago

definitely useful. also risky since it would introduce new behaviour to all existing mirror projects (i.e. why are my lights suddenly changing?).

probably best to just leave this as virtual and studios can override to implement what they need.

MrGadget1024 commented 9 hours ago

That means a custom IM that user has to create because we don't handle the stuff we should out of the box. Not at all user friendly. They'd have to somehow learn that they even can create a custom IM, even with our template, copy the entire IM from one of ours, and then add the override for this stuff. How would users even know to do this?

MrGadget1024 commented 9 hours ago

How about an alternative, where IM has drop-down flags for what to handle?