Here’s my problem, when i apply a skin in the gameview there’re like two labels…
public GUIStyle GSkin;
void onGUI(){
GUI.Label(new Rect(10,75,100,100),"Keys: " + Keys, GSkin);
}
Result:
And if i remove the skin:
Thanks!
Here’s my problem, when i apply a skin in the gameview there’re like two labels…
public GUIStyle GSkin;
void onGUI(){
GUI.Label(new Rect(10,75,100,100),"Keys: " + Keys, GSkin);
}
Result:
And if i remove the skin:
Thanks!
I bet you anything that you have the script duplicated in your scene somewhere. The same component is on two GameObjects, or perhaps on the same GameObject twice.
The reason it only shows up when you add a skin is that without the skin both are showing up in the exact same place. When one has a skin and one doesn’t there is a slight offset that is visible.