validation - Unity3d 4.6 beta17 UI Restrict input text to numbers only -


According to the title, is there any way to limit input text to numbers only?

Edit: It seems that the solution will be:

  Public input input; Zero Starter () {input.keyboardType = TouchScreenKeyboardType.NumberPad; Input.validation = InputField.Validation.Integer; }  

or debug inspector and more, choose: Enter image details here

Switch the inspector into debug mode, then you can enter a field You can use the keyboard type called and change it to what you want


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

Camel ProducerTemplate possible memory leak -

javascript - Adhering to a max length setting with jshint -