Hyluss

Only number in textField

Aug 6th, 2018
278
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.13 KB | None | 0 0
  1. onlyNumbers = GUILayout.TextField(onlyNumbers, 3);
  2. onlyNumbers = System.Text.RegularExpressions.Regex.Replace(onlyNumbers, "[^0-9]", "");
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment