I have a list of TMP_InputFields on my canvas like OTP boxes. I made it in such a way that the cursor automatically moves to the next box once the user types something in the current box. I am working on the backspace such that when it's pressed, the current box gets emptied and the previous box gets activated for the user.
I am having issues with getting the currently active TMP_InputFields out of these input fields. By active, I mean the box that currently has the cursor. I have tried looping through the list and checking ".enabled = true" and "isFocused" but both are not doing what I want.
Can anyone guide me through, please