Understanding GetButton and GetKey inputs in Unity

By | April 12th, 2015|Categories: Game Development, Mobile 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 [...]