Search Unity

Question How can I assign a specific device to PlayerInput through code?

Discussion in 'Scripting' started by FredChick, Oct 17, 2021.

  1. FredChick

    FredChick

    Joined:
    Oct 17, 2021
    Posts:
    2
    My question is if I have two gameobjects (both with playerinput on them) how can I use code to assign a specific controller to one or both of these. I want to use the same Action maps on both. Is this possible? Thanks a bunch!