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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment