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 432qwerty · Jul 29, 2014 at 11:39 AM · androidguiinputtouchblackscreen

Android - touch input causes black screen (except GUI)

I've put my game on my Android phone (Moto G) to test it, and found that when in any gamemode which I have if I try to move the character the screen goes black except for the GUI. This suggests that the camera is destroyed, but I have nothing in my scripts that would cause this. The weirdest thing is that if I just slightly move the character it is fine, but if you hold it down for too long then this problem occurs!

Still very new to Unity and this is my first time developing for Android. If you need to see my scripts as there is no obvious solution just ask.

Comment
Add comment · Show 3
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 meat5000 ♦ · Jul 29, 2014 at 11:41 AM 0
Share

Are there a lot of scripts? PasteBin them or something, would be the best option.

You are pretty much going to need to find somewhere you can cram in some debugging, to give you a better idea of what's working or not, but this isn't really enough information to go on.

What happens in editor?

avatar image 432qwerty · Jul 29, 2014 at 02:44 PM 0
Share

@meat5000 In the editor everything seems to work fine, but that's because I can't use any touch input. This whole project I'm working on is a copy of a PC version I originally made with mouse controls swapped with touch ones.

There are six scripts (C#) used. They are simply adaptations of the scripts used for the bug-free PC version. If it is a problem to do with the scripts, it will probably be within either Player_$$anonymous$$ovement or GUIText_Behaviour. The only bug I have is the black-screen.

Here is the PasteBin: http://pastebin.com/p1m4$$anonymous$$9rk

Thanks for your help :)

avatar image 432qwerty · Jul 30, 2014 at 09:45 AM 0
Share

Forget everything about the code! I have downloaded Unity Remote 4 and played through the editor on that and experience absolutely no bugs, so the code must be correct. The problem appears to be with the Android build itself. $$anonymous$$y $$anonymous$$oto G ion the latest Android build and I have built the game for Android build 4.4W, which I think is the same one. If not, please let me know @meat5000 !

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Arcadewiz · Jul 30, 2014 at 09:53 AM

I do not think it will be easy to understand your issue. Atleast state your objective for touch code where the app is malfunctioning on device perhaps instead of a single touch it is sensing a multiple touch or a different touch phase where your camera seems to go haywire.

Your touch functionality on being tested on device may have a different effect. It could be due to an unhandled condition or exception for the touch functionality if it is not a coding error. Perhaps you have not defined the touch phases clearly in your code.

That's what I can gather from your problem until now. Don't really have much to go on.

Comment
Add comment · Show 1 · 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 432qwerty · Jul 30, 2014 at 10:07 AM 0
Share

I don't expect this comment to lead to a definitive answer from you but using Unity Remote 4 this glitch is not present. Therefore it is not the code but ins$$anonymous$$d the Android build. Are there any obvious things done wrong frequently that can lead to complete malfunctions like this when building for Android? @Arcadewiz

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Main menu touch input for android 1 Answer

Please confirm: Galaxy Stylus not readable directly in Unity 1 Answer

,How Do get Touch input to work with the Player Input Component 1 Answer

GUI.TextField - Android: Unfocusing with click instead of Ok-button causes critical error 0 Answers

¿Unity messing up fingerIDs? [Android] 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