Auto Rotating a 3D model in AR application
Hi all, I am designing an AR application. I am a beginner to Unity and need some help in Auto Rotating my 3D model. My Rotate function is mentioned here- public void RotateCharacter() { characterList[index].transform.Rotate(new Vector3(0, Time.deltaTime * 10, 0)); } But when I am calling this function it is rotating the model for a single frame. I want this to be an auto rotation, where if the player touches the UI button " Rotate" it should keep on rotating unless the player touches the button again to make Auto Rotation off. Eagerly waiting for your answers, thanks.
Comment