Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Enter Name in new UI

$
0
0
How to make enter name in new UI?
[​IMG]

In old gui it was like:

Name.js
static var PlayerName : String = "Player";

function OnGUI (){
PlayerName = GUI.TextArea (Rect(Screen.width / 2,10,100,27), PlayerName, 10);
if (GUI.Button (Rect (Screen.width / 2,45,100,25), "Login")) {
Application.LoadLevel("Test");
}
}


And in next scene:

NameLoad.js
function OnGUI ()
{...

Enter Name in new UI

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>