I need to display label for different screen sizes on android. I used below code. When i running on device label displaying 2 times. Is if condition not working?
if(Screen.height >= 1280){
GUI.skin.label = style_1;
GUI.skin.label.padding.top=200;
GUILayout.Label("1. Print the alphabet image targets located at", style_1);
}
if(Screen.height >= 800){
GUI.skin.label = style;
GUI.skin.label.padding.top=100;
GUILayout.Label("1. Print the alphabet image targets located at", style);
}