Question by
HomesV5 · Mar 23, 2020 at 05:09 AM ·
uigameobjecteventsystem
currentSelectedGameObject not work in ios.
i use !EventSystem.current.currentSelectedGameObject to check if gameObject was selected. in android moble work fine, but in iphone iOS do'nt work! I'm going crazy about it!
if ( !EventSystem.current.currentSelectedGameObject )
{
if (currTouch0.phase == TouchPhase.Ended )
{
"do something"
}
}
Comment
sorry,it‘s works。The problem is in the wrong direction。 I found that it was TouchPhase.Ended which was not detected occasionally on the iPhone 7p
Your answer
Follow this Question
Related Questions
How can I organize menus as a tree hierarchy? 0 Answers
Unity Editor UI [bug] 2021.2.1f1 silicon 1 Answer
Check if EventSystem is in InputField 1 Answer
EventSystem.current is returning null 0 Answers
OnMouseDown work through UI elements 3 Answers