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
1
Question by Ibzy · Apr 16, 2015 at 11:48 AM · androidtouchjoystickaxes

Why is my touch joystick "sticking"?

I'm using the Unity Standard Asset single joystick, and translating the axes to movement (vertical) and rotation (horizontal).

When I test this in the editor everything works perfectly as intended, but when I install the app on my tablet (Galaxy Tab 4) the joystick sometimes sticks in position and becomes unresponsive for a short time.

Based on some testing it seems to be everything in Canvas as other on screen buttons sometimes don't respond to a tap.

Comment
Add comment · Show 1
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 ducttape36 · May 09, 2015 at 03:24 PM 0
Share

Had this issue on windows 8.1. Worked when using the mouse to move the joystick, but touch input would stick often. Bummer that the solution seems to be to recreate the entire project...

Edit: well I just recreated my project with just a player and a plane, but i'm still seeing the same behavior. After playing with the code a bit it seems that the joystick just stops accepting input, but also doesnt register a OnPointerUp event. I'll continue investigating...

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Ibzy · Apr 19, 2015 at 10:26 PM

In case anyone else has a similar issue, I have found an answer.

From scouring the internet for Unity 5 Canvas issues, people suggested the conversion from 4.6 to 5 caused a few glitches. I created a new project, brought across my assets and recreated the scenes - this worked perfectly and all it now working as intended.

Note: bringing your scene will cause the issue to repeat, and copying all assets from the old scene into the new would also repeat the issue - the scenes need to be rebuilt but can use prefabs/scripts/models previously created.

Comment
Add comment · 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
0

Answer by pocoster · Sep 28, 2015 at 05:43 PM

Realise this is an old question but ran into this earlier today, so for anyone who has this problem and wants a quick fix then i have one. It did seem to be an issue with bringing assets from 4.6 but if like me and its a time costly job to recreate your levels then i used TouchPhase as a simple work around for now, to ensure the joysticks didn't stick after release.

Just add yourself in an update function into the Joystick.

 void Update()
             {
                 if (Input.GetTouch (0).phase == TouchPhase.Began) 
                 {
                     //Started
                 }
                 if (Input.GetTouch (0).phase == TouchPhase.Ended) 
                 {
                     this.GetComponent<RectTransform>().position = m_StartPos;
                     UpdateVirtualAxes(m_StartPos);
                 }
             }



Comment
Add comment · 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

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

20 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

Related Questions

Please can someone explain how i use the joystick prefab for 2d. 0 Answers

How would I add android support to this character controller? 1 Answer

The joystick isnt working in Unity remote 5 3 Answers

Swipe and Joystick Together on Mobile 0 Answers

Dual joystick Position always resets on playing 1 Answer


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