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

Scripting

-

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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.