This is for people tracking down related issues:
With the update to the new UIKeyNavigation system (which is awesome btw) the system is not respecting buttons in a disabled state. A quick fix for this is by altering one line in
UIKeyNavigation.cs, specifically
line #131change from:
if (nav == this) continue;
to:
if (nav == this || !nav.GetComponent<UIButton>().isEnabled) continue;
UIKeyNavigation will now ignore buttons that are set to disabled states when looking for non-explicit connections.
[Important notes:
- This is in NGUI Version 3.5.5 NOT tested in or intended for later versions.
- Explicitly setting a Left, Right, Up, or Down target will still navigate to that object even if it is disabled
- This has not been thoroughly tested and may cause issues if UIKeyNavigation components are used on non-UIButton objects
- This is not an official fix, this is just a hack workaround. Aren will need to implement a stable and robust alteration before this will be supported natively.
]
[Clarification: the disabled buttons correctly ignore clicks regardless]
-Cheers, Memige