Search Issue Tracker
Fixed in 5.5.0
Votes
1
Found in
5.3.4f1
Issue ID
786180
Regression
No
[NetworkManagerHUD]Selecting prefab with "NetworkManagerHUD" component outputs "NullReferenceException" error message
Steps to reproduce:
1. Open attached project and scene named "scene1".
2. Navigate to the "Assets" folder through "Project" window and select game object named "Test".
3. Press play button in the Editor.
3. Notice that console window does not output any error message.
4. Still in the play mode, in "Project" window select prefab named "New Prefab".
5. Notice that now console window continually outputs error message "NullReferenceException: Object reference not set to an instance of an object", because prefab has a "NetworkManagerHUD" component.
6. Again in "Project" window select prefab "Test" and no error messages are output until again selecting prefab "New Prefab".
GIF attached.
Expected result:
There should be no exceptions thrown only by selecting game object with "NetworkManagerHUD" component in the Editor.
Reproduced with:
5.4.0b13, 5.3.4p2, 5.3.4f1, 5.2.4f1.
With 5.1.0f3 error messages appear not constantly (only four messages per click on prefab "New Prefab").
Note:
Sometimes (not always) exiting Unity while getting these error messages causes crash: "Unity Editor has stopped working".
Comments (1)
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
quinng
May 25, 2016 17:48
I have also encountered this issue. As I understand it, the custom property drawer for NetworkManagerHUD is trying display information at runtime that the NMHUD component on the prefab doesn't actually have access to.