interactable gone?

4.6+ UI… Has something happened to interactable?

using UnityEngine.UI;
<…>
slot.GetComponent().interactable = true/false

no longer works. The docs say it does, as well as all forum answers…

I can’t confirm that… Just tried it (Unity version 4.61f1) with

public class Test : MonoBehaviour {
    public Button button;
    // Use this for initialization
    void Start () {
        button.interactable = false;
    }
}

and the button gets disabled, so everything like it should be… Are you sure slot isn’t null and has the component Button in it? Maybe the slot object isn’t yet initialized?

Thanks for looking.
I tried at home this morning, with my clean install, and all worked well. Get to work and try again, still no go. So… look all over…
Turns out there is a button class in the beta sample assets /crossplatforminput. Overall, it hasn’t appeared to interfere, thus my never noticing it until now, but it does disable the one variable I need.
Removing them now…

Wow, that really sucks! Congrats for finding the error, tricky one :smile: