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
- [Android] [Vulkan] Cubes stuck on the first few frames of rotation and application flickering when an Overlay Camera is added to the Camera Stack with MSAA enabled
- Profiling information icon does not update for Light Mode
- [Linux] Type to select functionality is missing for drop down menus
- TextMeshPro calculates Width Compression incorrectly when using certain values in the WD% field
- VFX Graph link contrasts fail WCAG guidelines
Add comment