Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by CalebFnord · Feb 13, 2013 at 11:19 AM · androidbuttonsnguifocus

NGUI buttons stop responding after game loses and regains focus, on Android Galaxy Tab 2

On an Android Galaxy Tab II, when my game is running and then loses focus (by pressing "Home", by pressing the power button to turn off the screen, by switching to another running app in the background, etc.) and then regains focus, NGUI buttons are not responding.

I saw a similar problem that used to happen with EZGUI, here, so I tried replacing all of NGUI's realtimeSinceStartup with Time.time - didn't help.

I also tried implementing OnApplicationFocus that re-enables all colliders, and although the event was run in the Editor, it doesn't help on the tablet.

Any ideas?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by CalebFnord · May 16, 2013 at 11:34 AM

So as not to waste anyone's time, I'll answer myself:

A Unity update caused a bug in several plugins. All plugins' developers issued a patch and eventually a stable version that fixed this.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image NaxiaLascif · Jul 18, 2013 at 08:14 PM 0
Share

What was this bug? And in what version(s) was it fixed? Was it fixed in a Unity update, or just in plugin updates?

avatar image CalebFnord · Jul 23, 2013 at 06:44 AM 0
Share

If I remember correctly, it was a bug that caused Input.touchCount to be reset after the Unity application lost and then regained focus which rendered NGUI buttons unresponsive.

I had a problem with NGUI and 2DToolkit, I believe, and both quickly issued patches that fixed the problem. In 2DT$$anonymous$$, it was around version 1.92.

I don't know if the issue was resolved by Unity or if the patches remain in effect until today.

avatar image NaxiaLascif · Jul 23, 2013 at 03:07 PM 0
Share

Thanks, that's exactly what I am seeing. Input.touchCount becomes stuck at zero, and there is nothing you can do about it :'(

At least it sorta made me feel better when I played another Unity game released about 9+ months ago that exhibits the same behavior if you cycle focus enough.

Hopefully when I am in a position to upgrade to the latest Unity 4.2, the trouble will go away.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

buttons not working in android. 1 Answer

Android C# JoyStick Movement 0 Answers

Best way to handle loading textures based on device? 0 Answers

Joystick movement and turning 3rd person(Static Camera) 0 Answers

Render HTML Content in Unity UI Mobile Platforms 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges