Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 brekelmansjelle8 · Feb 27, 2019 at 02:54 PM · buttoncanvasslidereventsystem

UI elements stop working based on hirarchy position

I am trying to create a simple UI for a demo scene I am working on, and on this canvas I have a few elements: A panel, 2 buttons (each enable the other and disable themselves), a custom input field (basically a button that instantiates an in game keyboard when clicked for vr uses) and a slider.

As for my problem: While testing, I noticed some of the elements stopped working. At first I assumed it was because of overlapping, or maybe the sizing messed with the highlighting of UI objects, so I scaled everything to a scale of 1 and made sure nothing overlaps. But when I tried my next possible solution, things got WEIRD.

I started moving things in the hirarchy, and to my surprise, DIFFERENT elements stopped working (List of tests below images).

Hirarchy of the scene: alt text

canvas in the editor: alt text

Here is a list of what gets disabled based on the order in the hirarchy:

Buttons -> Slider -> Input & Buttons -> Input -> Slider

(Both buttons stopped working)

.

Input -> Buttons -> Slider

(Input and button 1 stopped working (This confuses me the most, as if it would be due to overlap, button 2 should not be working as well))

.

Input -> Slider -> Buttons

(Only input stopped working)

.

Slider -> Buttons -> Input & Slider -> Input -> Buttons

(Only slider stopped working)

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
Best Answer

Answer by brekelmansjelle8 · Feb 27, 2019 at 03:09 PM

I decided to try add some new buttons on top of the hirarchy using the "Buttons -> Input -> Slider" order, and for each button I added on top, the lowest button in the hirarchy that didn't work started working (1 button added, button 2 started working, 2 buttons added, button 1 started working, 3 buttons added, the first newly added button started working etc. etc.), confusing me even further...

.

Edit: Ok, so I got it working when changing the "order in layer" the sorting layer on the canvas to 10, but this still confuses me as the order in which certain elements got disabled was so strange.

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

126 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

Related Questions

Unusual trouble with OnPointerClick 1 Answer

UI Button onclick not detected 0 Answers

New UI buttons not working on top of screen on iOS devices. 3 Answers

Call Functions On Player From Canvas Elements In a Multiplayer Game 1 Answer

First selected GameObject not highlighted 3 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