GUI password check question

what script should i use to check if a string has been typed?

would it look something like:

    var Text : String = "Level3";

    function OnGui()

//code for identifying string here


thanks in advance!

Unity GUI Scripting Guide:


I'm sorry young gentleman, it's very rude to ask from other programmers to write your code for you.

In addition: "that's what i want, a full script on how to make a gui show up when you type the word" isn't a question but a request, you can pay someone and he/she will do it for you.

Using google you can find plenty of tutorials for free, If you don't like it you can buy books on programming/Unity engine for relatively small price.

Hello, put this script on a object with it's collider set to trigger. When you walk into the Object the text is shown.

var showtext : boolean = false;

function OnTriggerEnter(other:Collider) {
    showtext = true;

function OnGUI () {
    if(showtext == true){
        GUI.Box (Rect (Screen.width / 2 -100,Screen.height - 60,200,50), "Blah Blah Bla, Kryptic Message!");