How to add input number with GUI

Hello everyone

I have some lines, and each line has a specific number for color. I want to create a number or text input to get number interactively and then just show the line above that number with red color.

this is my PG:
https://playground.babylonjs.com/#FRJX06#23

in my code I have declared change lines color that their AU number is bigger than 5 but I want to create an input box that can get any number for AU and then change the lines color bigger than that input AU number. I would like to know how can I create an input box in GUI to get any number.

Yes you can:)
https://doc.babylonjs.com/how_to/gui#using-onbeforekeyaddobservable-for-extended-keyboard-layouts-and-input-masks

1 Like

Thank you so much.