Welcome,
Guest
. Please
login
or
register
.
April 29, 2026, 04:33:35 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Disabled button passes through click events
« previous
next »
Print
Pages: [
1
]
Author
Topic: Disabled button passes through click events (Read 3658 times)
zenmaster
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 20
Disabled button passes through click events
«
on:
March 31, 2014, 02:24:21 PM »
Hi All,
I'm using the following code to disable UIButtons.
button.isEnabled = false;
If you click on the disable button, the event goes through and hits a collider below it.
Is this the correct way to disable a button?
Thanks.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Disabled button passes through click events
«
Reply #1 on:
April 01, 2014, 07:33:12 AM »
When you disable a button via isEnabled you effectively turn off its collider as well, so yes the events will go to the next collider in line -- something below it, like the window's background. This is obvious, no? What are you trying to do?
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Disabled button passes through click events