The code creates an object instance of camSwitchButton that is defined as type <text>.
public Text camSwitchButton
The code is attempting to set a property of type 'T' on the camSwitchButton instance of a <text> object with this statement
camSwitchButton.T = objects[m_CurrentActiveObject].name
The error message is telling you that there is no 'T' property on the <text> object.
What is the class definition for <text>? That's the object that needs to have the property or method named 'T'.