I am currently in the progress of designing the UI for my little coding game made in the current version of Unity and want to show line-numbers for the code editor. My problem is that I somehow need to get the Text object for drawing those numbers to "scroll" alongsside the Text of my InputField in order for it to make sense.
Is there any variable on the InputField that contains information about how far it scrolled? Is there a function I can call? Do I have to connect both the InputField and the Text somehow?

