schaderDev
Member
This post shows the setup how to integrate Unitys NewInputSystem and UCC.
Setup:
Setup:
1. Install the InputSystem from the PackageManager and enable the new input backends. (Requires restart of the editor)
2. Download the integration package attached to this post.
3. Add the NewUnityInput script to your player. (Also, remove the UnityInput script from your player)
4. Add the PlayerInput script to your player.
5. Put the UCCInput.inputactions in the Actions field on the PlayerInput script. (See picture above)
6. You have to make minimal changes to Opsives Playerinput script. (See picture below)
7. Hit the "Replace with InputSystemUIInputModule" button on the StandaloneInputModule located on the EventSystem gameobject.
!Opsives Demo.scene will not work out of the box since it uses code from the old input system in quite a few demo specific scripts!
This integration works with keyboard and mouse and it should also work with modern controller (I dont have access to a controller right now, would be great if someone could test it).
Mobile input requires additional setup and is currently not working.
Additional sources to get started wit the NewInputSystem:
Meet the Devs: Input System - Unite Now (YouTube)
2. Download the integration package attached to this post.
3. Add the NewUnityInput script to your player. (Also, remove the UnityInput script from your player)
4. Add the PlayerInput script to your player.
5. Put the UCCInput.inputactions in the Actions field on the PlayerInput script. (See picture above)
6. You have to make minimal changes to Opsives Playerinput script. (See picture below)
7. Hit the "Replace with InputSystemUIInputModule" button on the StandaloneInputModule located on the EventSystem gameobject.
!Opsives Demo.scene will not work out of the box since it uses code from the old input system in quite a few demo specific scripts!
This integration works with keyboard and mouse and it should also work with modern controller (I dont have access to a controller right now, would be great if someone could test it).
Mobile input requires additional setup and is currently not working.
Additional sources to get started wit the NewInputSystem:
Meet the Devs: Input System - Unite Now (YouTube)
Attachments
Last edited: