- Home /
Question by
ocram99ful · Jul 24, 2013 at 07:19 PM ·
ingame
ingame button
Helo, sorry for mistaks in the question i am german. i need a ingame button with you stay near an put c a script is carry out for exampel Application.loadlevel() etc thx for help
Comment
Answer by GerryM · Jul 24, 2013 at 08:36 PM
Check out GUI.Button
You probably need something like:
void OnGUI()
{
if (GUI.Button(new Rect(10, 10, 50, 50), "Next"))
Application.LoadLevel("Level");
}
no not on sceen on a cube ingame. you stand infront of the cube and press e than you comt to the next level