Skip to content

furkan-bayram132/UnityInput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

UnityInput

A script to get input with less code.

To use:

Create a empty game object and attach KeyPresses.cs to it.

Screenshot_161

Select the keys that you want to get input from.

image

Create a reference to KeyPresses class

image

Drag and drop InputManager game object to the serialized field. This way Unity will automatically assign the KeyPresses script to the reference called keyPresses.

image

Now you can check whether the key is beign pressed (KeysBeingPressed), the key was pressed(KeysWasPressed), or the key was released(KeyWasReleased) using the following syntax

image

About

A script to get input with less code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages