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 rayuthebest · Oct 12, 2017 at 10:42 AM · uicanvasbuttons

Screen Space - Camera Bug (Buttons does not work) on Unity 2017

Hi everyone,

I have found an issue related with the "Screen Space - Camera" option and the buttons places on my canvas on Unity 2017 .

I have designed a bit complex UI with some buttons that open panels with additional buttons. All was going fine with "Screen Space - Overlay" option, but when I try to place some 3d models on the UI they were not drawn. Looking for internet, I found that with the option "Screen Space - Camera" the problem is fixed so I tried this approach and it works fine.

All was going ok, and I continue adding options to the UI, and in one iteration the whole UI stop working (buttons stop opening the panels). I have done some tests that I try to summarize in order to provide more details of the debug process that I followed:

  • Buttons worked fine on "Screen Space - Overlay" option, but 3d models were not drawn.

  • Switching from "Screen Space - Overlay" to "Screen Space - Camera" on play mode, does not solve the problem.

  • If on "Screen Space - Overlay" I press on a specific button, and then swap to "Screen Space - Camera" mode, the whole UI works fine (with the 3d Model)

  • I had tested some solutions related with the layers order reported on this forum, no one works.

  • Finally, I re-insert again the buttons on the Canvas (drag them from the canvas and placed them on the canvas object again) and the whole UI works fine.

I imagine that there is a bug related with this fact, but I do not know the reason or how to fix it correctly. Can someone provide me some additional information?

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 rayuthebest · Oct 12, 2017 at 10:59 AM 0
Share

I have detected that the problem comes from a panel whose scale is define to 0,0,1 (To show / hide the panels, I am setting their scale to (0,0,1) or (1,1,1))

Placing the buttons above this panel on the Canvas, cause that the buttons stop working, while if buttons are placed under this element solve the problem.

This panel only contains two components, a "Horizontal Layout Group" and a "Content Size Fitter", and inside it I have placed two panels (to order the inside buttons on columnsalt text)

sin-titulo.png (437.0 kB)

0 Replies

· Add your reply
  • Sort: 

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

125 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

Related Questions

Buttons stopped working after I temporarily changed the font. 1 Answer

Canvas buttons too slow 0 Answers

Unable to press UI buttons in the Editor in Dual Screen Mode?? 1 Answer

Buttons scale keep changing to 0 when I import them to a non-active parent 0 Answers

Highlight button via script at runtime 5 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