- Home /
Is there a way to check if the editor is using the Pro skin?
There are some tool icons I'd like to switch based on the Pro skin settings.
Checking GUI.skin.name shows SceneGUISkin with the Pro skin enabled and InspectorGUISkin without.
Is that a reliable method? Or is there a flag somewhere?
To clarify, this is what I currently use:
bool UsingProSkin() { return GUI.skin.name == "SceneGUISkin"; }
Answer by Alex-Chouls · Dec 26, 2011 at 03:28 AM
For versions before 3.5 this seems to be a better hack: isProSkin = (EditorPrefs.GetInt("UserSkin") == 1);
In 3.5 there's a new EditorGUIUtility.isProSkin property!
Your answer
Follow this Question
Related Questions
Problems controlling the GUI skin / style 2 Answers
Automatic new line 1 Answer
JavaScript OnGUI GuiSkins aren't working, multiple scripts 1 Answer
Global GUISkin? 1 Answer
Understanding GUISkin/GUIStyle BackgroundImage and Border 2 Answers