I saw many examples for mobile touch inputs. Some people uses GUITextures with hittest and some other uses regular GUIButtons for mobile touches.
What is the difference ? Which one is better for mobile development ?
I saw many examples for mobile touch inputs. Some people uses GUITextures with hittest and some other uses regular GUIButtons for mobile touches.
What is the difference ? Which one is better for mobile development ?
if you use GUITexture, then you’ll have to handle its event mannually, like click(with Rect.Contains()). on other side, GUIButton already have it.
What people use is actually depends. I am sure, most of people uses GUIButton with GUISkin. This is the simplest way to work in comparison to GUITexture.
In mobile dev, Unity GUI render its self,.i.e. OnGUI() many times a frame/depends on FPS of game (Update() get called once a frame). So, GUI is a bit heavy processing for mobile devices. So, try to keep it low as much as possible.