Quantcast
Channel: Latest Questions by MasterBLB
Viewing all articles
Browse latest Browse all 44

Operation in loop as long as a GUI button is pressed down

$
0
0
Hi I've found answer: http://answers.unity3d.com/questions/61317/while-button-pressed.html and I try do do in similliar way.I have inside OnGUI(): GUI.Button(new Rect(xOffset,yOffset,buttonWidth,buttonHeight),"LEFT"); and inside Update(): if(Input.GetButton("LEFT")) transform.Rotate(0,20*Time.deltaTime,0); but that does not work :/ Why?

Viewing all articles
Browse latest Browse all 44

Trending Articles