x


[Closed] 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.

more ▼

asked Mar 11 '10 at 06:39 PM

Mortoc gravatar image

Mortoc
915 2 7 14

(comments are locked)
10|3000 characters needed characters left

The question has been closed Jun 03 '12 at 01:49 PM by Mortoc for the following reason:

Duplicate Question


1 answer: sort voted first

The choice of style state is handled internally, and there isn't an API to inspect it, unfortunately.

more ▼

answered Mar 24 '10 at 04:09 PM

andeeee gravatar image

andeeee ♦
1.4k 3 6 18

@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... :)

Mar 25 '10 at 10:17 AM Lipis
(comments are locked)
10|3000 characters needed characters left

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3688
x111
x4

asked: Mar 11 '10 at 06:39 PM

Seen: 877 times

Last Updated: Mar 11 '10 at 06:39 PM