Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.1.0f2
Issue ID
1048133
Regression
No
EditorWindow loses references to Script components of Scene Objects when entering Play mode
Reproduction steps:
1. Open the attached "EditorWindow Reference Bug.zip";
2. Open the SampleScene;
3. In the upper Menu go to Test -> My Window;
4. Add two new slots in the window;
5. Drag the Camera component to one slot from the Main Camera;
6. Drag the Script object to the second slot from the Main Camera object;
7. Enter a play mode;
Expected results: After entering a play mode, both components should stay in the slots.
Actual results: Script components always loose reference.
Reproduced on: 2017.3.2f1, 2017.4.5f1, 2018.1.5f1, 2018.2.0b9, 2018.3.0a2.
Not reproduced on 2017.1 and 2017.2 as there was possible to attach only scene components, not object components.
Note: If the Editor Window script is modified, Unity reloads assemblies and the script component is shown again.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Property field override bar does not update transparency correctly when switching between valid and invalid GameObjects
- Project window selection is not updated when search term is changed
- Error when adding valid MonoBehaviour script to Prefab in Project window
- Editor Launch Screen will close when Enter is pressed on it
- ObjectPool's pool is destroyed when entering Play Mode without reloading Domain
Add comment