Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
  • Help Room /
avatar image
0
Question by davidcox70 · Apr 08, 2017 at 03:25 AM · uitouchscreenbutton trigger events

Windows 10 Touch Screen input stops triggering onClick events

Hello,

I have a weird problem I could use some help with. I have a working game that is run on Windows 10 PCs, driven by a touch screen. All works perfectly for between several minutes and several hours. Then, touch inputs on the touch screen stop generating onClick events for all UI buttons.

At first, all works well. A touch on the UI button happily generates the onClick event, which is added simply as follows:

 Button startButton = startButtonGO.GetComponent<Button>();
 startButton.onClick.AddListener(nextLevel);

But after a while, no touches trigger any onClick event in any scene. Nothing has changed with the layout. For example, there are no objects in front of the button.

The game continues to run - it has not crashed. It is running all items in the Update function. It just isn't responding to further touch inputs.

The Game can be controlled endlessly using a physical mouse. This generates no problems at all. The problems are only shown when controlled by a touch screen.

The game is part of an installation with several such panels and PCs. They all exhibit the same problem.

I would greatly appreciate any help or pointers.

DC

Comment
Add comment · Show 5
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 BoaNeo · Apr 27, 2017 at 08:02 AM 0
Share

Did you ever find a solution for this? Having a similar problem, except in this case touch stops working completely - both in Unity and in Windows in general. After Unity has been started, Windows must be restarted to get touch working again.

avatar image davidcox70 · Apr 27, 2017 at 04:09 PM 0
Share

@Boaneo Sadly I haven't been able to solve this. Touch / click input is only restored after the game is restarted. Windows touch / click input is unaffected.

In your case, try looking into power saving on the USB port to which your touch screen is connected. Perhaps windows is putting it to sleep?

avatar image BoaNeo davidcox70 · Apr 27, 2017 at 04:26 PM 0
Share

Darn, but thanks for the suggestion, I guess power saving could be an issue - I'll make sure it's all turned off.

Though, it would be strange how that would only be a problem after running Unity. It's almost as if Unity does something that kills the touch drivers.

avatar image Alturis2 · Aug 02, 2017 at 10:03 PM 0
Share

Interestingly I am getting a more rudimentary problem with EventSystem OnClick(). Apparently, it does not trigger on a $$anonymous$$acintosh. Or at least a $$anonymous$$acbook. Anyone else ever run into that?

I dont have a macbook but I am getting reports from those testing it out on one that clicking on my UI buttons does nothing for them. Though my other logic that detects for mouse button input manually works fine.

avatar image taynaTinoco · Oct 17, 2019 at 08:24 PM 0
Share

Hey guys! After two years using unity 2019 I'm having the same trouble but only appears until now, on a capacitive touch screen. I wonder if any of you have found a solution?

0 Replies

· Add your reply
  • Sort: 

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

137 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 3D UI Button Not Working When Touched (Mobile)? 1 Answer

UI button events not working on android 3 Answers

UI buttons sometimes does not detect touch 1 Answer

unity 2017 Problem with touch and ui button 0 Answers

How to make button click continuous ? 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