yunzen
0
Q:

find a letter in string unity

  private var TestString = "as3klkfjslgtke5tkt";
 
 function CheckCode ()
     {
     if (TestString.Contains("3k"))
         {
         Debug.Log("Code Correct");
         //do whatever you need to do for 3k
         }
     }
1

New to Communities?

Join the community