I must be missing something, but I cannot seem to find an easy way to disable a UIItem.
As for example, I want a certain basic button (UIItem) that have a child sprite (UITweenItem). At a certain point, I want to disable this button, which means that the player would still see it, but it won't be clickable, no tweening, no callback.
As far as I checked, there is no explicit way to do it. I tried to unregister the button callbacks, which worked, but the button still tweened when clicked. I tried to switch the button on a layer that is not used by the UIManager.raycastLayerMask, but this member did not seem to affect the raycasting, since every buttons are clickable wether the layer mask is set to Nothing or to everything. THe other option is to set UIManager.inputEnabled = false, but this turns off EVERYTHING, which is not the desired behaviour in my case.
Am I missing something? There must be an easy way to do something as I explained, since it seems very basic to me, and 2D Toolkit is a very deep, very good Unity plugin.
Regards