Search Issue Tracker
Fixed in 5.6.0
Votes
1
Found in
5.4.0f3
Issue ID
826222
Regression
No
SpawnWithClientAuthority and AssignClientAuthority returns TRUE when authority is not assigned
When calling NetworkManger.SpawnWithClientAuthority(gameObject, conn) or NetworkManger.AssignClientAuthority(gameObject, conn) and conn.isReady = FALSE, then TRUE is returned but Authority is not assigned.
In this case conn.isReady is still equal to false, because it is called right in NetworkManager.OnServerConnect method. If we wait for conn.isReady = TRUE before we try spawn object, then authority is assigned properly.
Reproducion steps:
1. Open attached project
2. Run "Test" scene
3. Click "LAN Host(H)" button
3. Observe that "LocalScoreController(Clone)" object does not have Authority (Network Information on Inspector)
Actual result:
Console printed "True" but authority is not assigned
Expected result:
Methods should either assign authority after connection is ready and return TRUE OR return FALSE if not assigned.
Reproduced on: Unity 5.2.5f, 5.3.0f4, 5.4.2f1, 5.5.0b9, 5.6.0a1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] GameObject are not rendered at all or rendered black when in the custom shader “multi_compile_instancing“ is enabled with two “float4” instance properties are present on older devices
- LineRenderer.BakeMesh generates a box-shaped MeshCollider when the camera's Y-axis rotation is in a specific range
- Different build sizes between Editor build and command-line build when "Static Batching" is enabled
- Particle System "Start Rotation" property affects a different axis when upgrading to newer Editor versions
- "Light" Component's "Culling Mask" setting is hidden but still has an effect when using HDRP
Add comment