Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.3.0b1
Issue ID
1078331
Regression
Yes
[OnGUI] Editor hierarchy and Project windows have red text sometimes
Repro Steps:
- Open this project or start your own project
- I have the Tile Palette and the console window tabs selected, which causes the Hierachy and Project windows to not be visible
- Open a script in a different window
- Write up some errors in that script that causes Unity to fail the script to compile
- alt+tab to that scripting wondo again to fix the compile errors
- alt+tab to the Unity window to trigger the script to compile again
- alt+tab to a different window again while the scripts are compileing
- alt+tab to the Unity window and notice the hierechy window and the Project window have red text and this error appears in the Console:
Unable to use a named GUIStyle without a current skin. Most likely you need to move your GUIStyle initialization code to OnGUI
UnityEditor.SceneHierarchyWindow:OnEnable()
Note: there are probably smarter ways to get the UnityEditor.SceneHierarchyWindow:OnEnable() to trigger, but this is the only way I managed to do it myself. Reproduced this about 3-4 times in 10 mins, but I'm still not 100% sure what triggers this call.
Reproducible with Unity 2018.3.0b1
Not reproducible with Unity 2018.3.0a11 or earlier versions.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Editor] Profiler (Standalone Process) "Live" button is greyed out by default
- UIToolkit bindings on RadioButtonGroup is not displaying the selected radio button when the choice list is bound
- Sprite shadows are not rendered when the light source is placed near the sprite
- Multiple Video Players are not playing simultaneously when played in WebGL
- "Rename Prefab File?" window does not pop up when renaming Prefab in the Project window
Add comment