- Home /
iOS Numbers and Decimal keyboard
I want this, perfect for typing in amounts, and the decimal.
I found this as an obj-C answer: https://stackoverflow.com/questions/35437604/numeric-keyboard-with-decimal/35438258#35438258
So what's the C# equivalent? Doesn't appear to be in the list... https://docs.unity3d.com/Manual/MobileKeyboard.html
It "should" be: TouchScreenKeyboardType.DecimalPad
Do you open the keyboard manually?
Do you want the keyboard to be opened up when focusing an input field? If so, have you tried to change the Content Type
field of the Input Field to Decimal Number
?
@hellium, Yes I'm manually opening it with TouchScreen$$anonymous$$eyboard.Open(..., HERE, ...);
When? Don't you get the desired results when giving TouchScreen$$anonymous$$eyboardType.DecimalPad
as 2nd argument? Have you tried other types? (just to check if the argument is completely ignored or not) Do you get any error in the console (of Xcode)?
Answer by Fillmore · Jul 17, 2019 at 02:22 PM
This has been confirmed by the Unity Dev team and should be seen in an update.
Your answer
![](https://koobas.hobune.stream/wayback/20220612205001im_/https://answers.unity.com/themes/thub/images/avi.jpg)