</> ursina.prefabs.input_field
Inherits Button
Initialization
InputField(default_value='', label='', max_lines=1, character_limit=24, text='', active=False)
Attributes
.limit_content_to
default: None
.hide_content
default: False
if set to True, will display content as '*'. can also be set to character instead of True.
.next_field
default: None
.submit_on
default: []
for example: self.submit_on = 'enter' will call self.on_submit when you press enter.
.on_submit
default: None
function to be called when you press self.submit_on.
.on_value_changed
default: None
.text_field
default: TextField(world_parent=self, x=-0.45, y=0.25, z=-0...
.label
default: Text(str(label) + ':', parent=self, position=self....
Properties
text
text_color
active
Methods
input(key=None)