I wanna enable some components by their name in inspector and this is my code:
var Components : String[];
function OnEnable () {
for (var i= 0; i < Components.Length; i++){
GetComponent(Components*).enabled = true;*
}
but I got this error:
enabled is not a member of UnityEngine.Component