Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.1.0b13
Issue ID
1022097
Regression
No
Scriptable Object with missing Script behaves differently in PlayMode and in PlayMode Tests
Reproduction steps:
1. Download user's project and open in Unity
2. Enter Play mode - everything works fine
3. Open Window -> Debug -> Test Runner and select PlayMode
5. Select "Run All"
6. Run tests again
Expected: behavior is the same in Play mode and in PlayMode tests
Actual: PlayMode tests fail
Reproduced on: 2017.1.3p4; 2017.2.2p4; 2017.3.2f1; 2017.4.1f1; 2018.1.0f1; 2018.2.0b1
Note: "Resources/String With Int" in inspector has a warning - "The associated script cannot be loaded. Please fix any compile errors and assign a valid script."
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Closed as wont fix, as the workaround "Always put Scriptable Objects in Files with the same name. This prevents missing Scripts." is the recommended approach in general. The test framework will have unpredictable behavior when working with missing scripts.