Search Issue Tracker
Won't Fix
Votes
1
Found in
5.6.1p2
Issue ID
920321
Regression
No
[UNET] Local Player Authority(Client) removes Has Authority from the spawned gameObject
Steps to reproduce:
1) Download attached project and open in Unity
2) Build and Run project
3) In the Editor, press Play and create LAN Server Only
4) With Standalone build, connect as a Client
5) In the Editor, enable Debug mode
6) In the Hierarchy window, select 'object2' gameObject and you will see that 'Has Authority' will be disabled
7) Check logs also and you will see that hasAuthority over 'object2' will be false
Expected result: When Local Player Authority is enabled, Has Authority against spawned gameObject should not be disabled
Actual result: When Local Player Authority is enabled, Has Authority against spawned gameObject is disabled (check attached image 'actual.png')
Reproduced with:
5.6.0b6, 5.6.1p4, 2017.1.0b9, 2017.2.0a3
I wasn't able to test with Unity 5.6.0b5 and older due to errors in the Console window
-
ilnsoftlab
Jul 17, 2018 19:22
I haven't seen attached project, but seems like you don't understand how the things work.
With Local Player Authority enabled, only Player will have authority automatically.
For Non-Player objects you should tick this option and also manually assign authority using AssignClientAuthority, or NetworkServer.SpawnWithClientAuthority. Otherwise the object will be under Server authority.
For more information check this https://docs.unity3d.com/Manual/UNetAuthority.html
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
Resolution Note:
Mass closure of UNET Bugs.
As UNet is Deprecated we are moving to low maintenance mode, where critical issues can get fixes.
Closing this bug as part of cleaning-up the Bug List.
If you feel this bug is really a road-blocker, you can reopen the bug and we will work on this one.
For more information and next steps see this [blog post](https://blogs.unity3d.com/2018/08/02/evolving-multiplayer-games-beyond-unet/) and the [FAQ](https://support.unity3d.com/hc/en-us/articles/360001252086-UNet-Deprecation-FAQ)