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 Team_26 · Oct 02, 2016 at 12:52 PM · camerauicanvashud

UI elements within canvas are invisible

Hi! I have a canvas and some UI texts inside it. The problem is that they are only visible when I set their position to center of the screen. When I change it to top or any corner, they become invisible. It's quite interesting that it only happens with one canvas. The other one works properly. Both are set to "Screen Space - Camera". There's also another problem. I use these UI texts as player's HUD. I don't know why, but when they're set to "Screen Space - Overlay" they don't keep their position while player is moving. I had to set them to "Screen Space - Camera" to solve the problem, but now every 3D object can cover them... Can You help me?

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 Team_26 · Oct 02, 2016 at 06:48 PM 0
Share

Guys, please...

avatar image dval · Oct 03, 2016 at 08:02 PM 0
Share

Are you updating the element positions after you update the anchor point? It would cause things to jump around. You could try temporarily added a really large background image to see if they are just off-screen or really 'invisible'.

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by SirDef11 · Oct 06, 2017 at 11:46 AM

Exactly, Unity is FULL OF BUGS like this, EVERYTIME, and you can't know why, you need to rebuild again and again, and to pray that another bug will not happend (which will happend anyway...). It's my 100th bug you know, and i feel very angry now, what a WASTE OF TIME !!!

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
avatar image
0

Answer by SergioSandiaz · Oct 03, 2016 at 06:01 AM

Try to set Canvas to "Constant Screen Size" and use a default size (I normaly use 1366X768), also check the anchors of your GUI elements

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
avatar image
0

Answer by Team_26 · Oct 03, 2016 at 04:50 PM

I tried to set Canvas to ,,Scale with screen size", because there was no option "Constant Screen Size" . It didn't help ;/

alt text


beztytułu.png (10.6 kB)
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 SergioSandiaz · Oct 04, 2016 at 03:00 AM 0
Share

Yeah bro, I wrote the name wrong, also set the $$anonymous$$atch width (I think) to 0.5

avatar image Team_26 · Oct 06, 2016 at 04:16 PM 0
Share

Sorry for no response. It still doesn't work... I have no idea why.

avatar image
0

Answer by Uteki · Feb 09, 2019 at 12:01 PM

I had similar problem while moving object from outside of Canvas into the Canvas. Scale was changing to 0 while parenting.

To fix that you need to set "worldPositionStays" to false while parenting.

uiObject.transform.SetParent(canvas, false);

At least it helped me.

Ps: I hate this retarded way of formatting text, that we have here.

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

102 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

Related Questions

UI elements within canvas are invisible 0 Answers

Screen Space - Camera to Screen Space - Overlay switch issue 0 Answers

How can I display text so that it can be see on the Vive Headset? 0 Answers

World Space canvas on top of "everything"? In 2019 0 Answers

Scene Is Missing A Full Screen Camera? 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