Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2019.1.X
Votes
0
Found in
2019.1.0a5
2019.2.0a1
Issue ID
1115796
Regression
Yes
The UI Scrollbar component blocks Prefab Mode in Play Mode
If you attempt to edit a prefab with a UI Scrollbar component attached while in playmode, you'll get the following warning:
Prefab Mode in Play Mode was blocked by the script 'Scrollbar' to prevent the script accidentally affecting Play Mode. See the documentation for [ExecuteInEditMode] and [ExecuteAlways] for info on how to make scripts compatible with Prefab Mode during Play Mode.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Looks like this first appeared in 2019.1.0a5
1. Install Unity
2. Open the attached project
3. Enter Play Mode
3. Navigate to Assets > Canvas.prefab
4. Attempt to open Canvas.prefab in isolation mode
Expected Result:
The prefab is opened in isolation mode for editing.
Actual Result:
Isolation mode is blocked from opening due to the Scrollbar component being present on the prefab.
Tested on Windows.
Occurs on 2019.2.0a1, 2019.1.0a14, 2019.1.0a5
Does not occur on 2018.3.0f2, 2019.1.0a4
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
Add comment