Hello everyone. My game currently using SpatialHashing for Interest System. And today, my game has to implement some arena, each of it has their logic, fields such as who in it, score, playtime, time,.... (it looks like a room). Those logic and fields will be in a Network object (ArenaController : NetworkBehavior).
It still work good with SpatialHashing but still have some problem:
- The arena can sync their informations with everyone "around" the arena (instead only to those who inside the arena).
- My Arena can be very large in world position. So if aplayer run far away the arena instance, the arena instance will be despawned and will cause some bugs. I can change arena's visible to ForceShow but it will worsen the first problem (syncing data to arena's outsider).
- I found a solution in ChatGPT but i'm not sure this is a correct way or not. ( script included ). Thank you in advanced.