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 Nanako · May 21, 2015 at 06:29 AM · uicanvasdraw order

how does UI/Canvas Draw order work?

Ok, here's my setup alt text

The blue menu with the white border, is the entireity of StatsPanelCanvas. What i want is for it to always draw BEHIND StatsButton, which is just below it in the child list.

As far as i understand, child objects are drawn in their order, so the last child should always be on top of everything, and the first should always be underneath everything. But that's not so, if i move the stats button down: alt text

Ok so clearly i must be wrong, lets try moving StatsButton above the StatsPanelCanvas

alt text

That works, great! . Let's start play mode now, and see it in action. During playmode, the StatsPanelCanvas gets moved around and transformed a lot. alt text

So what's going on here then?

But if i now, while still in play mode, swap their order again; alt text

I have no idea what is going on here. Someone please explain this to me. How can i make the stats button ALWAYS be on top?

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 WillNode · May 21, 2015 at 08:35 AM 3
Share

the strange one is when you not play your game. the UI draw order is always drawn first from top to bottom on Hierarchy.

avatar image FortisVenaliter · May 21, 2015 at 04:57 PM 0
Share

Are those screenshots all from the "Game" tab? In the scene view, I don't think the render order is as well defined.

avatar image Nanako · May 22, 2015 at 11:01 AM 0
Share

first 3 are scene, last 2 are game. i would assume there isn't a difference

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Hanuschi · Oct 18, 2016 at 07:41 AM

Hi, I have exactly the same problem (U 5.4.1f1 Personal) now and I cannot figured out why neither object ordering nor override sorting ordering does not work as I expected. Has anyone found a solution?

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

21 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

Related Questions

Issues rotating a UI image while the canvas is parented to the Main Camera 0 Answers

I Have a Button in Canvas, i Click anywhere except the button and it gets clicked 0 Answers

Basic question about creating a menu 1 Answer

How can I reference a Toggle? 3 Answers

button OnClick function triggering another buttons OnClick 0 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