- Home /
Duplicate Question
Is it possible to detect which GUIStyleState is used?
Say I'm drawing a GUI.Button. Is it possible to tell if that Button will use the normal, hover, or any other GUIStyleState from the GUIStyle I give it?
I don't want to take control of the GUIStyleState from unity, I just need to figure out which state Unity decided to use.
Answer by andeeee · Mar 24, 2010 at 04:09 PM
The choice of style state is handled internally, and there isn't an API to inspect it, unfortunately.
@andeeee this is an exact duplicate: http://answers.unity3d.com/questions/5477/is-it-possible-to-detect-which-guistylestate-is-used by the same user... I still can't vote for closing questions and since you are an insider I guess this is the correct answer... :)
Follow this Question
Related Questions
How to Vertically Stretch a Custom Thumb for Unity Scrollbars 0 Answers
Sometimes the GUI selectively doesn't render some letters 1 Answer
GUIX remove problem 0 Answers
Using a custom style of GUI.skin 3 Answers
Using GUISkin with Hierachy Objects 0 Answers