Hello Everyone
Im new to this website and new to unity so sorry if this is in the wrong forum or its been asked before but anyway i have a very basic problem that i cant seem to figure out, I have created a menu for my game and id like to have an image rotate on it on its y axis, no button feature or anything like that just a regular image that rotates constently until the menu is exited and once the player returns to the menu the image will rotate again so the image is just your basic PNG placed on a GUITexture background. First I created a new GUITexture and attached the PNG image to it,then i placed it on the menu screen then i created a javascript and wrote this code:
var rotateAmount : float = 5.0;
function Update() {
transform.Rotate(Vector3(0, rotateAmount, 0));
}
which should start rotating it on its y axis but it dosent, could anybody tell me what it is im missing? or if this is even possible.Unfortunately the only help i can find on rotation is on iphone apps which this is not im just using basic unity version 2.6 any help would be greatly appreciated thank you