Skip to content

shadowmint/unity-n-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

n-input

Helpers for using the input system.

Install

From your unity project folder:

npm init
npm install shadowmint/unity-n-input --save
echo Assets/pkg-all >> .gitignore
echo Assets/pkg-all.meta >> .gitignore

The package and all its dependencies will be installed in your Assets/pkg-all folder.

Development

Setup and run tests:

cd test
npm install

Remember that changes made to the test folder are not saved to the package unless they are copied back into the source folder.

To reinstall the files from the src folder, run npm install .. again.

Tests

All tests are wrapped in #if ... blocks to prevent test spam.

You can enable tests in: Player settings > Other Settings > Scripting Define Symbols

The test key for this package is: N_INPUT_TESTS