Restrictions for player Username
I'm making player creation widget, where players need to enter they own custom username. Now try to figure out few restrictions, and no idea how to make them. 1. First letter should be capital, rest of them small. 2. First letter should be a letter not a number. 3. Min amount 5 max 12. 4. No special symbols. 5. Maybe even not allow to user numbers too. That's what I haven't decided yet. Was trying different ways how to restrict that for text box, but no success so far. And can't find any tutorial eater.
asked Sep 04 '18 at 07:04 AM in Blueprint Scripting
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.
You should look into string ops: https://api.unrealengine.com/INT/BlueprintAPI/Utilities/String/
This, for example, will Capitalise the string and will not allow the first entry to be a number:
Follow this question
Once you sign in you will be able to subscribe for any updates here