Understanding GetButton and GetKey inputs in Unity

By |2020-02-14T16:28:25+00:00April 12th, 2015|Categories: Game Development, Unity3D|Tags: , , |

Unity's button / Input system has been the source of confusion for many newcomers. It's no suprise, after all we have  GetKey, GetKeyDown, GetKeyUp,  GetButton, GetButtonDown, GetButtonUp. So let's try make sense of it all. GetKey / GetKeyDown / GetKeyUp Input.GetKey(...) will be familiar to developers coming from other platforms like Flash. It accepts either a KeyCode parameter [...]