- Home /
GUI.DrawTexture and GUITexture multitouch
I'm making a car game for android and I created Throttle, Break and Steering Wheel.
All is working good but I can't use Steering Wheel when I touch throttle or brake. Or when I'm using Steering wheel, if I touch to throttle or break, Steering Wheel is a little messing. How can I fix this?
Throttle and break are GUITexture, Steering Wheel is using GUI.DrawTexture (because GUITexture does not support rotating)
I'm checking touches like this:
Format your code please. It's hard to read which is also not a good practice.
I'm not sure what the problem is but try using foreach ins$$anonymous$$d of for loop and see if anything changes.
Answer by rahul-ahuja79 · Jul 19, 2014 at 11:56 AM
You can use gui.drawtexture for all three steerings,race and brake. by using rect.contains and it will work smoothly var rect=Rect(600,70,100,80); if(rect.Contains(Input.mousePosition)) use this anf if you have any problem mail me at ahuja.rahul99@gmail.com
Your answer
Follow this Question
Related Questions
Two player touch screen 1 Answer
Multi touch support for Android devices 0 Answers
How is the value in SystemInfo.deviceModel gathered? 0 Answers
Differentiating between fingers in multitouch 1 Answer
FingerID problem 1 Answer