General Tips and Tricks

Use Clear() to Fix Misconfigurations

If you encounter odd behavior while developing with cInput, it may be helpful to make a call to Clear() to clear out any misconfigured cInput settings. But be careful with this! If you accidentally leave this in your release builds that make it to your players, it will erase any player-customized settings. They probably won't be too happy about that.

Script Execution Order

cInput should execute before other scripts to make sure that all inputs are updated for the current frame before your other scripts try to access them. By default, this should automatically be handled for you when you import the .unitypackage file, but it's something to be aware of if the script execution order is somehow lost or modified.

Last updated