Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

password to load a level

$
0
0
now i have another problem.
I want to make a very easy and basic login scene for this medical log thing.
like a password field, where you need to type the right password to load the next scene.
ive come this far:
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Password : MonoBehaviour {
  5.     public string passwordToEdit = "Cinderella";
  6.     void OnGUI()
  7.     {
  8.         passwordToEdit = GUI.PasswordField(new Rect(10, 10, 200, 20), passwordToEdit, "*"[0], 25);
  9.     }...
password to load a level

Viewing all articles
Browse latest Browse all 23263

Trending Articles



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