Hi to all,
we use GUIStyle for Mouse over and active and things like that. Is there any style like that for iPhone. i.e i wish to change the button image on button press in iPhone.
unityboy
Hi to all,
we use GUIStyle for Mouse over and active and things like that. Is there any style like that for iPhone. i.e i wish to change the button image on button press in iPhone.
unityboy
On Iphone also same functionality works. it dosen’t work based on the Input type, it works based on the GUI state.
ex : when you are pressing a Button down using your finger on Iphone, whatever Render Settings you are using for active state will work. same is the case when you are doing it using Mouse.
i am using the following statement and in MenuButtonStyle GUIStyle I have used my button image in Active and checked it as On Active as well in inspector. But I did not worked in iPhone, but worked with mouse when i press button. Any thing I am doing wrong ?? thanks for reply
GUI.Button(Rect(22, 22, 210, 50), "", MenuButtonStyle);
I got reply from this link…
http://forum.unity3d.com/viewtopic.php?t=17367&highlight=button+gui+state+hover
Actually while the unity remote it does not works but when we deply it on iPhone it does works. :o ![]()