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 magicscreen · Jun 11, 2015 at 05:41 AM · highlight

Button not working

I tried to use the Forums but no one was able to help me.

I have a screen with a button created as follows:

GameObject -> UI -> Text

I added the UI -> Button component to make it a button.

I changed the Highlight and Pressed colors.

The button worked until I did two things.

  1. I added music which seemed to be OK

  2. The Title on the screen was too large for the current resolution so I increased the resolution.

Now, when I enter the level and hover over the button, instead of it turning Green (Highlight color) it does not change and when I click it to activate it, the Pressed color does not change.

I tried to add a new button but that too does not work.

Any suggestions would be greatly appreciated.

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 magicscreen · Jun 11, 2015 at 12:10 PM 0
Share

[Resolved]

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by KdRWaylander · Jun 11, 2015 at 07:33 AM

Hi,

Try making your button last sibling in your UI hierarchy, you can only interact with the top layer of the UI (first sibling is at the bottom and last sibling is atop everyone else). If you have UI stuff piled, it may cover your button (even with a transparent thing)

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 Kiwasi · Jun 11, 2015 at 08:05 AM

Do the UI check. Do you have

  • An EventSystem GameObject?

  • A Canvas with a GraphicsRayCaster?

  • Is your button enabled and set to interactable?

Try creating a new button and see if that works.

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
Wiki

Answer by magicscreen · Jun 11, 2015 at 12:05 PM

Hi KDRWaylander,

Thanks for your response.

I tried the new button first and it did not work. That is why I determined that it was a Canvas issue.

I did not realize that the physical position in the hierarchy mattered.

Anyway, I resolved the issue.

I created a new Canvas and copied the items from the original Canvas to the new one.

I only wish I could have determined what caused the issue in case it happens again.

magicscreen

Comment
Add comment · Show 3 · 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 magicscreen · Jun 11, 2015 at 12:13 PM 0
Share

Thanks Bored$$anonymous$$ormon,

Thanks for your response.

I did have a Canvas with a GraphicsRayCaster. I have no idea what that is. I tried to change it to something else but it did not fix the issue.

However, I resolved the issue.

I created a new Canvas and copied the items from the original Canvas to the new one.

I only wish I could have deter$$anonymous$$ed what caused the issue in case it happens again.

magicscreen

avatar image KdRWaylander · Jun 11, 2015 at 02:45 PM 0
Share

Glad you solved it :)

avatar image Kai-Creator · Mar 26, 2018 at 09:00 PM 0
Share

I know its nearly 3 years later but I think I noticed what caused this. I did the same and created a new canvas and it fixed it, and I noticed that there was an EventSystem present that I must've deleted on the other one. Anyway, a simple fix really however still annoying to spend 4 hours on it.

avatar image
0

Answer by mimiCryMuffin · Oct 22, 2018 at 06:25 AM

I have the same problem =(( work with UI from gamePad is awful in Unity=(

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Highlight an area of my 3D model 1 Answer

What is happening to these normals? 0 Answers

Highlighted a game object in the hierarchy without click in the inspector ? 2 Answers

Highlight gameobject 1 Answer

Fake specular highlights for android game 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