• 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 agackarakas · Jan 07 at 05:02 PM · errorbuttonsphones

Game crashed after enabling 29 button at the same time

Hi guys. I just make a alphabet game and I have to create a 29 button for each letters. So, when i press " play" button 29 buttons should be appear. But game crashed and shut down itself. These all happening on the phones, not on the editor. I can not understand.Why phones cant handle just 29 button ?

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 Tomatotom1234 · Jan 07 at 05:10 PM

@agackarakas have you tried with just 10 or so? that way you can see whether or not the buttons are the problem

Comment
Add comment · Show 9 · 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 agackarakas · Jan 07 at 06:58 PM 0
Share

Oh, I haven't tried. I will try this and let you know the results. Thanks for the answer.

avatar image agackarakas · Jan 08 at 09:02 AM 0
Share

I decreased the button number to 2 from 29. And it worked. Now we can see buttons are the problem. What can ı do ?

avatar image Llama_w_2Ls agackarakas · Jan 08 at 09:13 AM 0
Share

What scripts do you have on the buttons? (If you have any). And what is parented to the button as well? Having multiple UI Elements should not affect the speed of your game by the slightest, unless there are large scripts running simultaneously on the buttons, which would cause it to crash.

avatar image agackarakas · Jan 08 at 03:06 PM 0
Share

This is the scripts buttons have. I dont think the script is the problem. Anyway, I will try to build and open my game on the phone with 29 same Image without button and my scripts.

[1]: /storage/temp/173843-qq.png

qq.png (5.1 kB)
avatar image agackarakas · Jan 08 at 03:13 PM 0
Share

The parent of the buttons is empty object with scroll rect.

avatar image agackarakas · Jan 08 at 03:28 PM 0
Share

I removed Buttons script and my script from buttons and tried again. Result was same. Now I will remove the sprite and try again.

Show more comments

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

153 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 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

Array out of range! 1 Answer

HELP! Buttons stop working when made a child of a "Canvas Group" empty in 4.6.3f1? 4 Answers

My buttons do not appear when paused? 2 Answers

Getting Fatal Error 2030 using WWW in Flash 7 Answers

How do I place 2 buttons next to each other? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges