Quantcast
Channel: Answers by "ozturkcompany"
Viewing all articles
Browse latest Browse all 24

Answer by ozturkcompany

$
0
0
Since you set your phase to TouchPhase.Began it will of course will do the job just for a frame because, you know, that phase only happens once for all touches on the screen unless you release your finger off of the screen and touch it again.So do this and it will work; if(touch.phase != TouchPhase.Ended && guiTexture.HitTest(touch.position)) { //Do your stuff here }

Viewing all articles
Browse latest Browse all 24

Trending Articles



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