Restrictions for player Username

After some research I see that there are no such instruments in the blueprints (text masks or regular expressions like they have it in C++). So I believe you’ll have to do it manually.


Furthermore, I didn’t find a way to check the character case. You can convert it ToUpper() or ToLower(), but you can’t check what it is. So after some thoughts I had the following idea:

  1. Create a string “abcdefghijklmnopqrstuvwxyz0123456789” and check if all the characters in the player’s name are contained in there. If not, print out an error, e.g. “No Special Symbols or Spaces Allowed” or something.

  2. Create a string “ABCDEFGHIJKLMNOPQRSTUVWXYZ” and check the first character against it, case sensitive.

  3. Check all the other characters against the first string, case sensitive.



    Here’s what I made. Sorry for the mess, I tried to fit everything into one screen. Hope you can figure it out.