I’ve been messing with rotation the last few weeks and I haven’t really figured it out yet.
In the editor I just have to edit the X axis rotation to get the effect I want.
Is there anyway to rotate your object in script the way you do it in the editor, only over the X axis?
Write these lines in Update() function and put this script on the object that you want to rotate.
var speed:float = 50;// as needed
transform.Rotate(Time.deltaTime * speed,0 , 0);
Means You want the same effect after pressing “E” in editor in unity…a circle appears and by that Rotate the Object??? or Just Rotate in case of just Rotate Go with the Answer By @DeveshPandey and if you want to define the Rotation speed then just write
transform.Rotate(RotationSpeed * Time.deltaTime,0 , 0); //define rotation speed as per your need