UI Button-parameters inaccessable in spite of "using UnityEngine.UI"

I am trying to access any parameters on a UI-Button, but they are being highlighted red in the script and I get Errormessages altough I have “using UnityEngine.UI;” implemented in my script.
Example Error: “…Type Button' does not contain a definition for interactable’ and no extension method interactable' of type Button’ could be found (are you missing a using directive or an assembly reference?)”

My script simplified:

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class MyScript: MonoBehaviour {
public Transform tButton;

void SetButtons()
{

if(blabla)

{
Transform newButton = Instantiate(tButton, tButton.transform.position + v3NewButtonPosiOffset(), Quaternion.identity) as Transform; //some buttons will be instantiated aside each other

71226-button.png}

}

}

First I’d make sure you have the button prefab/game object set up and that it is instantiating that. From what I see you’re only instantiating a transform.

using UnityEngine.UI.Button;

Apparently it was a problem with my Unity 5.1.0 version (whyever). In 5.3.5 using UnityEngine.UI works just fine and Button-methods are accessable.

@ninja_gear thanks it is solved.