How can I cut a string if the number of characters is higher than 30?
I need it to create a chat with a limited number of characters
If you want to take just the first 30 characters of a string, you can do that with the Substring function.
You probably also want to modify your text input field so that it wonโt allow the user to type more than 30 characters in the first place (it has a property for max length that you can edit through the inspector). This is a better user experience than letting the user type a very long message and then deleting some of it by surprise.
1 Like
Thanks for the quick response