I have an input field and get the text value on button click from code behind. The stupidest thing is i get only the visible part of the text input. For example if p://www.blabla.com/videos/blablavideo.mp4 is seen on the text input(because the url is larger than the ui text input area) it gets only the visible part not "http://www.blabla.com/videos/blablavideo.mp4" So stupid...
You're getting the wrong field. There are at least three different text bits. An InputField has a .text field. That's the one you want. https://docs.unity3d.com/2019.1/Documentation/ScriptReference/UI.InputField-text.html An InputField also has two Text fields it uses, one for payload (or part thereof), one for placeholder. Generally, don't use those Text fields. Let InputManager use them.