bool GetKeyUp(string description)
bool GetKeyUp(int descriptionHash)


description: The name of the key, as defined in SetKey().
descriptionHash: The hashcode of the name of the key, as defined in SetKey().


bool: Returns true only once each time the key is released.


Use this to determine if a key has been released during this frame. GetKeyUp() returns true only once when the key is first released.

The use of GetKey() is recommended if you want to trigger an event repeatedly while the key is being held down, e.g., for continuous movement.


// prints the message just once when the player releases the key. if (cInput.GetKeyUp("Jump") { Debug.Log("You released the jump button!"); }

results matching ""

    No results matching ""