• Touch Camera
  • Need help with using custom controller and Player Input

Hi, I'm having some trouble with the demo script called "Custom_Control_Controller_Support". I added the camera from that demo into my main game scene and tried to use it but I can't use the WASD-keys. It turns out that my Game Manager-object has a PlayerInput-component (which I need to have there) and if they use the same Input Action Asset, the input isn't registered for the Camera Controller. As soon as I disable the Game Manager, I can start moving the camera just like in the demo.

Do you think you would be able to write a version of that script that instead gets its input actions from a PlayerInput-component and can work alongside it. I can easily just use two separate Input Action Assets, one for the camera and one for everything else, but I would rather have everything unified into one.

Hope you're enjoying your vacation!
Thanks!

    4 days later

    Pixelkvist Hi, I never used PlayerInput before and its integration is a bit out of scope. My demo scripts serve more as an example code on how to integrate with Unity's inputs, but it's not a plugin feature per say. The code in CustomControlControllerSupportDemo.cs is quite small though so you might be able to port that to your custom needs. I hope that makes sense?

      Write a Reply...