Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
2
Question by tawsm · May 29, 2015 at 05:21 AM · guitextcanvaspixelnested

Nested Canvas - Text not PixelPerfect

Hi, I have a Combobox, which i need to be on top of my other UI elements. I achieved this by using a nested Canvas with Override Sorting checked. Howerver, the text inside my Combobox-Items is not Pixel Perfect, no matter what option i choose there.

Look at my example screenshots. The text is not sharp (even if you can't really see it, trust me, it isn't), and it doesn't change at all, when switching the Pixel Perfect options. The frame of each list item on the other hand, is affect by the Pixel Perfect stuff. alt text alt text

This leads me to the conclusion that Nested Canvases, Pixel Perfect and Texts are not working togehter, which is a bug. I'm using v.5.0.2f1 btw. Can someone confirm this or, if there is a solution, help me out?

Cheers

nestedcanvas-pixelperfect-off-s.jpg (384.1 kB)
nestedcanvas-pixelperfect-on-s.jpg (381.5 kB)
Comment
Add comment · Show 2
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 tawsm · Jun 17, 2015 at 03:37 PM 0
Share

untiy? some feedback would be great...

avatar image tawsm · Oct 19, 2015 at 01:50 PM 0
Share

After filing a bug report and no answer of unity whatsoever, i'll bump this up once more. I tried to reproduce the issue and it's so easy to do. I can't believe i'm the only one having this issue.

Here is what i did: - New Scene with orthographic camera and a canvas using this camera, sorting layer set to 'UI', a custom one, pixel perfect on. - Button inside the canvas, perfectly sharp, no issue - Nested canvas inside the button, sorting layer to override using a custom one, 'UI_Front', which is rendered on top of 'UI'. Pixel perfect inherited - Button inside nested canvas, blurred like hell, sometimes depending on the resolution

Here is a screenshot of my setup:

Please Unity, fix this issue...

nestedcanvasbug.jpg (325.1 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Shark-Boy · Jun 17, 2015 at 03:47 PM

A nested Canvas will mess up a lot of stuff (as I found out the hard way). However there is a way to make a UI element be drawn on top of the other UI elements (as I also found out the hard way) the UI elements are drawn in the order that they are in the hierarchy from top to bottom so if you make your combobox the first gameobject on your canvas it should be on top of everything else. And this should make the pixel perfect work.

Comment
Add comment · Show 2 · 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 Shark-Boy · Jun 17, 2015 at 03:51 PM 0
Share

And I can't believe that this has been unanswered since $$anonymous$$ay 29?!

avatar image tawsm · Jun 24, 2015 at 10:13 AM 0
Share

What you are saying is partly correct. UI elements will be drawn top to bottom, if i wanted my combobox to be on top, i would need it to be the last sibling in the hiararchy (at the bottom), in order for it to be drawn last. In my case however, this is not possible. I need the combobox to be exactly where it is in the hierarchy, because of resolution scaling reasons.

I guess Unity didn't think of this originally, then introduced nested canvases, because they realized sorting and anchoring/scaling wouldn't work like that, entirely hierarchy dependent.

We tried several methods, e.g. taking the combobobx and shuffling it via script at the bottom of the hierarchy, shuffling it under a seperate 'on top' canvas, etc. Everything ended is some kind of fuck up or mess sooner or later.

So all i need is for Unity to fix their nested canvases-pixel-perfect behaviour with texts.

Anyway, thank you for your efforts! ...and you are totally right, i can't believe it either :(

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

Canvas Text gets garbled 0 Answers

New Unity UI with OnTriggerStay. 0 Answers

UI Text Component being reset on player when built 0 Answers

Text object can't be searched for with GameObject.Find 3 Answers

Need Text to Display After 5 Seconds 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