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 RevolverOctorok · Apr 18, 2015 at 08:38 PM · guibuttonseventsystemheirarchy

Only buttons closest to EventSystem (or last in the list under Canvas?) work.

I am now on hour 4 of trying to solve this issue, reading countless threads, I really hope someone has seen this issue before, I'm getting desperate here. I have 3 groups of buttons in my Canvas that get active at different times. Those 3 sets of buttons are Pause, Stage Clear, and Game over. They all work fine, if they are the closest one to the event manager on the hierarchy. As you can see in the picture below, the groups of buttons in Stage Clear will work since it is closest to Event System, while the other buttons will not animate or be clickable.

alt text

If I move the "GameOverBackground" below "StageClearBackground", that one would be the one that works while the other two will not animate or be clickable. As shown below:

alt text

Same goes for if PauseButton gets moved down closest to EventSystem. I'm not sure why EventSystem isn't allowing all of my buttons to be clickable. Is the hierarchy wrong somehow? Any help would be greatly appreciated with this.

issue.jpg (14.1 kB)
issue2.jpg (17.3 kB)
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 RevolverOctorok · Apr 18, 2015 at 10:16 AM 2
Share

So I finally discovered that the reason I couldn't click anything besides the bottom was because they were overlapping. I was clicking the top layer which was the bottom most UI element. I fixed the issue by moving each layer off screen and having it slide in via animation when they are needed one at a time. On one of them I also had "blocks raycast"checked on the Canvas Group which also prevented me from clicking it.

So the case is solved before this even got approved. I hope this solution helps other people who get stuck on this for hours like I was.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Negede · Dec 21, 2017 at 09:44 PM

I'm facing the exact same problem. And i am now on hour 6 of reading through posts and trying different workarounds. Some guy mentioned that a Graphics Raycaster was needed in the scene, but that fixed it for ONE playthrough. Now it's all bugged up again. Graphics Raycaster still in scene.

please tell me if you solved this @RevolverOctorok

// edit: sry for the notification. I forgot to see your followup answer

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 Negede · Dec 21, 2017 at 09:49 PM 0
Share

seeing your answer about overlapping elements i found out that my buttons were children of a text object, that had overlapping width with the others. I didn't need to slide it in. I just needed to make sure that the text objects weren't overlapping. Now it actually works. Your post helped!

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

What's a good book to learn scripts for Unity? 1 Answer

Trigger an event from editor script? 0 Answers

How do disable uGUI/EventSystem selection feature? 0 Answers

Scaling the space between GUI elements 2 Answers

Tutorials for 2D game GUI 2 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