Unable to find style in skin 'GameSkin'
Hi,
I am trying to use a custom skin with custom styles. I am following the documentation to the dot. But when I try to run my program I get the following error:
Unable to find style 'leftButton' in skin 'GameSkin' Layout Unable to find style 'leftButton' in skin 'GameSkin' Repaint
The person in this thread had a similar problem, and he or she claims that the solution was to set the public GUISkin property in the game object's inspector, not the module's inspector (I understand he or she refers to the inspector for project elements).
But this is not always an option (imagine you want to attach this script to an object you instantiate at runtime). So is there a way to fix this?
Thank you for your help!
Your answer
Follow this Question
Related Questions
onMouseDown active self on siblings 0 Answers
Strange rotation behaviour 0 Answers
How to make movement speed decrease for 2D Top-down shooting game? 0 Answers
MovieTexture not playing in playmode 1 Answer
Damage with Bullets 0 Answers