Search Issue Tracker
Duplicate
Votes
0
Found in
5.4.1f1
Issue ID
847668
Regression
No
Changing scripts order in the Script Execution Order throws NullReferenceExpection
Reproduction steps:
1. Open the attached project ( KpyTou project with bugs hehe.zip);
2. Open "Script Edition Order" in inspector (Edit -> Project Settings -> Script Execution Order);
3. Change the value of TerrestrialPursuer class, for instance, to 80;
4. Enter the play mode without pressing the "Apply" button in the Inspector;
5. Before the start of the scene, a warning will be shown. Press "Apply" in this messageBox;
6. Observe the errors in the console which show that the variables were reset.
7. Close the play mode by pressing the Play button;
8. Change the value of TerrestrialPursuer class again and apply it in the Inspector;
9. Observe the console - the errors do not appear.
Expected result: Applying the different order should work either way - in the Inspector and in the messageBox;
Actual result: Function is working unevenly and throws errors in the console.
Reproduced on:
5.4.1f1, 5.5.0b11, 5.6.0a2.
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
- TileMap selection resets to the default when the Scene is saved
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
This is a duplicate of issue #830711