Why convert Vector2d to Vector3d (vice versa)?

Hi, in Complete C# Unity Game Developer 2D course Laser Defender course video #113, why are we converting Vector2d rawinput to Vector3d? Why do we need this?

Hi,

transform.position is of type Vector3. Unity’s input actions work with Vector2.

Is this what you wanted to know?


See also:

Thanks Nina, didn’t know input actions are only Vector2.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms