- Home /
Unable to find styles in GameSkin to Repaint
I've created a GUISkin to handle a simple change of images for my scrollview and scrollbar thumb. But I am getting these errors:
UnityEngine.GUI:BeginScrollView(Rect, Vector2, Rect, GUIStyle, GUIStyle)Unable to find style 'scrollviewthumb' in skin 'GameSkin' Repaint
UUnityEngine.GUI:BeginScrollView(Rect, Vector2, Rect, GUIStyle, GUIStyle)nable to find style 'scrollviewupbutton' in skin 'GameSkin' Repaint
UUnityEngine.GUI:BeginScrollView(Rect, Vector2, Rect, GUIStyle, GUIStyle) When I looked inside the untouched GUISkin I noticed that the normal image for vertical scrollbar thumb was labeled "Missing Texture" I've replaced it with my own art but it continues to print the warning messages and will not draw my replacement icons. Is this a Unity bug? How can I fix GameSkin?nable to find style 'scrollviewdownbutton' in skin 'GameSkin' Repaint
Answer by hdgam3r · Aug 30, 2012 at 04:05 AM
On your skin, at the very bottom, is a Custom Style array, you have to create at least 1 (size 1) and then name it scrollviewdownbutton.
Hope it helps.
That didn't change anything. I still receive the same warnings. As a further explanation: I have scrollview using a background image and scrollviewdownbutton with my thumbnail image. The scrollview image appears, however no other image will.
Update: When building to my device, the game will occasionally draw the GameSkin default image for a scrollbar thumbnail when moving to a new scene. Other times it draws nothing again. I'm still concerned that GameSkin is somehow broken. Any idea how I can check that or reset it?
Your answer
Follow this Question
Related Questions
The Unity Scrollbar Handle NaN problem 0 Answers
GUIlayout scrollbar, Not working well... 1 Answer
How to hide scrollbar on side of the view 0 Answers
Scroll Rect Min/Max Size 0 Answers
Custom EditorWindow Scrollbars not working with GUILayout areas 1 Answer