- Home /
Dark vs Light skin
I'm developing an editor extension that looks great in the Pro only dark skin. But the the light colored text is unreadable in the indie light skin. How can I check for the skin and display the correct graphics accordingly?
Comment
Best Answer
Answer by syclamoth · May 26, 2012 at 03:53 AM
I don't usually post one-link answers, but when I do it's because the question is really simple.
Note that this is only supported from Unity 3.5 (I think at least, not earlier anyway). So if you plan to support earlier versions of Unity, you will have to find another way.
Here's the other way if anyone's interested:
bool isProSkin = (EditorPrefs.GetInt("UserSkin") == 1);
Your answer
Follow this Question
Related Questions
Using custom style for window rect? 0 Answers
GUI skin in GUI Window with Scrollbar 0 Answers
Pro Skin / Basic Skin 1 Answer
Customized Toggle 0 Answers