function OnMouseDown()
{
myGUITexture.texture = pressedTexture;
GameObject.Find(“Camera_Move_Object”).transform.Rotate(0,-45,0,Space.World);
}
I want to hit a button and set the transforms of an object absolutely, not relative.
Space.World seems to be doing the same thing as Space.Self.
It’s rotating relative to it’s current position instead of setting the rotateY attribute directly…
Any help would be appreciated.
Thanks,
Oliver