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 D_3d · Oct 20, 2013 at 06:41 PM · androidbuttonremotesamsung

Remote Gui Button only works on device if mouse is over the button in Unity editor

I am using Unity 4.2.0f4 on Windows 7 PC.

I have my Samsung Galaxy Note 10.1 attached with USB and the Remote app. This appears to working correctly as I added a first person controller from the mobile assets and it moves around with touches inside the dotted corners.

I am now trying to add a simple button to my window.

This didn't appear to work at all when tapped on the Galaxy Note. If I clicked on the button in the Unity Game window in the Unity 4.2 Program on my PC it did work as expected.

And then I noticed that if I left my mouse over the button in the Game window, the Galaxy Note would now detect the touch on the button.

Is this a bug, or am I doing something wrong ?

I searched the forums and found only this similar question : http://answers.unity3d.com/questions/543284/unity-remote-detecting-touches-only-at-mouse-posit.html

Any help gratefully received as at the moment I cannot test buttons using Remote on my Galaxy Note.

The code I used to test was (taken from the forums) :

 var Nnn = "TextA"; //Text variable for change text
  function OnGUI ()
  {
  if (GUI.Button(Rect(10,10,50,50),GUIContent(Nnn))) //Create button with text variable
  {
  print("Text to confirm in log");//Just text in log
  Nnn="TextB";//Change what must appear in button
  UpdateMessage();//Do the function to change text
  }
  }
  function UpdateMessage ()//Function to change text
  {
  UnityEngine.GUI.Button(new Rect(10, 10, 50, 50), GUIContent(Nnn)); //Lust change the text in GUI.Button
  } 
Comment
Add comment · Show 4
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 D_3d · Oct 23, 2013 at 08:30 PM 0
Share

Tried the above with my Galaxy S4 attached with the Remote and experienced the same. Can only trigger the button if the mouse is over it in the main Unity Game window.

Has nobody experienced this before ?

I'll build the project and test it on my devices to see if it is a Remote glitch.

D.

avatar image SomeRandomGuy · Oct 29, 2013 at 02:29 PM 0
Share

Having the same problem here on a galaxy $$anonymous$$i 2, pretty sure I didn't have this with 4.0, just recently upgraded to 4.2 and now it is doing this. builds seem fine, but testing stuff has become very annoying now.

avatar image niltoid · Dec 28, 2013 at 06:46 AM 0
Share

First time using Unity Remote with Unity 4.3.2 and experiencing the same problem on my nexus 5 running Android 4.2.2. From SomeRandomGuy's comment sounds like a bug may have been introduced in Unity?

avatar image fastfun · Apr 12, 2014 at 07:48 PM 0
Share

same problem with galaxy note 10" and asus transformer pad tf300t. any ideas?

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

18 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

Related Questions

Android Button With Raycast 3 Answers

Default Android touch sound 0 Answers

Buttons not always working on new android phones(taking multiple clicks to work) 0 Answers

Size and Location of buttons based on screen resolution. 2 Answers

Simple Multitouch Issue 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