Enable or Disable Autorotation Animation option

Hello,

How can I disable or enable in Unity 3.4 from script the autorotation animation option. I can’t find this function in the Unity Script reference.

Peter.

I think you’re referring to something that is not part of Unity API. It must be some community script.

You can quite easily make your own autorotation script :

var yourEpicGameObject : GameObject;
function Update()
{
if(Input.GetKey("r")) // Assign key and rotation values as you want
{
    yourEpicGameObject.transform.Rotate(BLA,BLA,BLA*Time.deltaTime);
}
}

then assign the gameobject you want to autorotate to this script in the inspector

remember to mark this answer as accepted and give it a thumbs up if it helped you