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 omg_Aya · Nov 20, 2014 at 12:40 AM · buttonscenesnguihudwtf

NGUI Button some how unclickable

Hey all,

back with another ridiculous situation this time using the plugin NGUI.

So here's whats going on. I have a HUD which works perfectly fine on level 1. Then on level 2 there is a button that can no longer be clicked. Like it has some kind of invisible wall in front of it that eat up my clicks.

This HUD is a prefab and I have deleted it and re-added it to level 2 multiple times. Same exact result always. I have even went ahead and deleted everything else in the scene except this object. Still doesn't work. Deleted everything else in level 1 as well just to make sure the HUD can work on its own. It can.

So, any ideas what the hell is going on with this? I've tried messing with depths etc. but when everything else in the scene is off I can't imagine what it could possibly be fighting against. Especially since an identical version of it works fine in another scene.

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by omg_Aya · Nov 20, 2014 at 04:22 PM

Alright well here's what we did to fix this.

Go to the camera the button is being looked at by. Change its event type to 3D UI.

Go to the button that for whatever reason doesn't feel like working. Change its box collider from box collider 2D to just the normal unity Box Collider script and scale it up to size.

That's it. You literally just don't use the 2D collider with the 2D UI and it's fine.

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 AndyB_1992 · Aug 04, 2015 at 06:06 PM

If you have put your panel on another Layer: - Go to the Camera the layer is being rendered by - In the UICamera(Script) settings, you should see "Event Receiver Masks" - Now add the layer that your NGUI panel is on.

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 Nomibuilder · Jan 13, 2016 at 12:49 PM

  1. Remove Box Collider from your Button and then

  2. Add Component > Box Collider (Select Box Collider from there)

  3. Now Double Click on your Button and set Collider Size according to your button size. That's It.

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

28 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

Related Questions

Is it possible to simulate a keypress/input in code? 5 Answers

NGUI: Button don't detect input if parent change position on-screen? 1 Answer

Access NGUI button's notify(OnClick) 1 Answer

NGUI button: Different sizes for different states? 0 Answers

Unity Button Without an Image? 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