- Home /
Question by
wagamama · May 01, 2013 at 05:07 AM ·
touch screen
Ask about Program is interrupted Touch event will ineffective.
Ask about Program is interrupted Touch event will ineffective.
when my games is playing it's all ok! maybe have phone or phone get into sleep mode Or other factors, as long as the phone cancel jumps back to the Home, and back to the game Touch event will ineffective
I try a little a easy and clean test is the same .
How I should solve this failure problem.
521.jpg
(82.7 kB)
Comment
Answer by dadika4 · Aug 18, 2015 at 11:43 AM
Input.GetTouch(0).phase == TouchPhase.Canceled ->you must have this in code. It is used when a phone i dead, goes out of game etc. Because you have an array of Input.touches that you need to handle when you turn back game the touchid must be same.
Your answer
![](https://koobas.hobune.stream/wayback/20220613101329im_/https://answers.unity.com/themes/thub/images/avi.jpg)