Exiting Play Mode after a script change throws 28 NullReferenceExceptions from the template's RobotManager subscribers
Package: Industry IET
Open
1.0.X
Steps to reproduce:
Create a new project from the Industry Fundamentals template
Open Assets/Scenes/Warehouse.unity
Enter Play Mode
Open Assets/Warehouse/Scripts/Robots/Robot.cs in a code editor
Add an empty line and save the file
Return to the Unity Editor
Exit Play Mode
Observe the Console
Actual results: 28 errors and a warning are logged while scripts reload:
NullReferenceException: Object reference not set to an instance of an object
Unity.Templates.IndustryFundamentals.Robot.OnEnable () (at Assets/Warehouse/Scripts/Robots/Robot.cs:28)
AudioControls: RobotManager.Instance is null!
Expected results: The scripts reload without errors
Reproducible with versions: 1.0.4 (6000.6.6f1, 6000.7.0b4, 7000.0.0a8)
Can't test with versions: 6000.3.26f1 - the template's scripts do not compile (RobotManager.cs(42,23): error CS1501)
Tested on (OS): macOS 27.0
Prioritise and Follow this issue
Have a workaround or additional info about this issue?