r/UnityHelp • u/Top-Sky4811 • Aug 13 '26
PROGRAMMING Can someone help me understand/digest this code?
I've been going through Unity tutorials and so far i've understood and absorbed everything *except* for this: I understand the first highlighted part, its making a Variable called "moveInput" and its a Vector 2 so it stores 2 values, and the second highlighted part i can kinda understand, but the third line is lost on me. I don't understand the relationship between moveInput and moveAction, or what the InputAction variable (type?) means. Also in the third line why is it reading the Vector 2 from the moveAction when the Vector is from the moveInput? Thanks in advance.












