Host Client SyncVar Hook AOI Bugs
bug
### Two issues:
- [ ] All SyncVar hooks fire for host client at spawn ignoring AOI
- [ ] No SyncVar hooks fire for host client entering range per AOI
### Benchmark Example Mods
**Pull the HostClientSyncVarHookTest branch**
- Spawn Amount reduced to 100
- SpawnPosition moved to x:40 away from monsters
- Added RandomColor script to Monsters
- Added Debug.Log to RandomColor SyncVar hook
### Steps to Reproduce
**Pull the HostClientSyncVarHookTest branch**
- Open the Benchmark example scene
- Add the scene to Build Scene List
- Play as host (player spawns out of range)
- Hold left arrow to move player toward Monsters
### Observations
- Console shows 100 log entries for SyncVar hook firing at spawn, but host client player is fully out of range
- Moving host client left into monsters reveals them but no more SyncVar hook logging
### Expectations
- No SyncVar hook firing initially with host client player out of range
- SyncVar hooks should fire when player moves into range
- If player moves out of range and back into range, hooks should fire again as monsters are revealed
### Remote Clients
- Build and run as host or server only
- Play client in editor
- Hold left arrow to move remote client player toward Monsters
- Observe the expected behavior as remote client moves in and out of range or monsters move into range
- Remote clients work fine...logging from the hook all fire correctly.
0 条评论