Quantcast
Channel: Questions in topic: "unity remote"
Viewing all articles
Browse latest Browse all 297

Standard Assets' DualJoysticks not working with Unity Remote

$
0
0
I'm following the tutorial [here][1] and I'm not able to get the joysticks to detect hits. Debugging [Joystick.js][2] (part of Standard Assets (Mobile)), I see that on line 150 HitTest is returning false and so "shouldLatchFinger" is not getting set to true. This means the rest of the method is bacially a no-op: else if ( gui.HitTest( touch.position ) ) { shouldLatchFinger = true; } touch.position shows negative x, positive y (for example, x = -154.3, y=48.4), which seems wrong. Is the position correct? Shouldn't the x and y be positive? Or is the answer "it depends?" EDIT: this issue only happens with the Unity Remote application. If I build to the XCode project and run that, the joysticks work fine. [1]: http://www.raywenderlich.com/25349/how-to-get-started-with-unity-part-23 [2]: /storage/temp/37460-joystick.js.txt

Viewing all articles
Browse latest Browse all 297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>