I want to show keys list in options menu.
But i don’t know how can i reach the keyname of Input.GetButton(“Run”)
Joshua
2
Use KeyCode, an enum of all the different keys.
var jumpKey : KeyCode = KeyCode.Space;
function Update( )
{
if( input.GetKeyDown( jumpKey ) )
Jump( );
}