ContentTypes
Located in ursina/prefabs/input_field.py
Available Types
ContentTypes.int— digits'0123456789'ContentTypes.float— digits plus'.', ','ContentTypes.int_math—intplus'+', '-', '*', '/'ContentTypes.math—floatplus'+', '-', '*', '/'
Example
from ursina import *
app = Ursina()
username_field = InputField(limit_content_to=ContentTypes.int, default_value='123', active=True)
app.run()