Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
netcode-gameobjects-2.4.3
Issue ID
MTTB-1431
Regression
No
"NetworkBehaviours require a NetworkObject" pop-up throws NullReferenceException when it opens on a Prefab which is a child of another Prefab
How to reproduce:
1. Open the attached project "Test"
2. In the Project window, open the "Cube" Prefab
3. In the Hierarchy, select the "Capsule" GameObject
4. Make any change in the Inspector (e.g. on the Script Component)
5. In the Inspector, click "Overrides" under the Prefab field
6. Click on the changed Component to call the pop-up
7. In the "NetworkBehaviours require a NetworkObject" pop-up click "No (manually add it)" and observe the Console
Expected results: No errors are thrown
Actual results: "NullReferenceException" is thrown
Reproducible with: 6000.0.52f1, 6000.1.10f1, 6000.2.0b8, 6000.3.0a1
Reproducible on: macOS Sequoia 15.4 (M1)
Not reproducible on: No other environment tested
Note: Reproducible when clicking any option in the pop-up
First lines of error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorWindow.Close () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorWindow.cs:1097)
UnityEditor.PopupWindowWithoutFocus.OnGlobalMouseOrKeyEvent (UnityEngine.EventType type, UnityEngine.KeyCode keyCode, UnityEngine.Vector2 mousePosition) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/PopupWindowWithoutFocus.cs:96)
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
There are no fixes planned for this Bug