Search Issue Tracker
Won't Fix
Votes
0
Found in
5.5.0f3
Issue ID
876454
Regression
No
Method with [command] attribute targets wrong method on server/host when 2 scripts attached to the same object
Steps to Reproduce:
1. Launch 2 instances of the project.
2. On one instance start host and client on another.
3. Press client "Clicker1" button.
Expected result: host/server calls Clicker1.OnClick () method.
Actual result: host/server calls Clicker2.OnClick () method.
Reproduced on:
Unity 5.5.0f3
Unity 5.5.0b11
Unity 5.5.2p3
Unity 5.6.0f1
Unity 2017.0.1a3
Win 10 pro
Notes:
Host buttons works as expected.
Order in which Scripts are attached to player prefab matters. If you switch order of attached scripts (Clicker1 and Clicker2) you get invert result: Clicker2 button calls Clicker1.OnClick() .
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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 this one.