Search Unity

Feedback Player Input Manager - Use Reference Workflow

Discussion in 'Input System' started by Djayp, Apr 11, 2019.

  1. Djayp

    Djayp

    Joined:
    Feb 16, 2015
    Posts:
    114
    The PlayerInput Manager with "Use reference" defines a "join action" to instantiate a prefab with a PlayerInput component by pressing a generic (device free) InputAction.

    I face some problems with this workflow :
    1) If "Use reference" is set, the first instantiated prefab (PlayerInput > Actions) use the main InputActionAsset, disabling the generic Start InputAction for the next player.


    ̶2̶)̶ ̶O̶n̶c̶e̶ ̶j̶o̶i̶n̶e̶d̶,̶ ̶i̶f̶ ̶P̶l̶a̶y̶e̶r̶I̶n̶p̶u̶t̶'̶s̶ ̶n̶o̶t̶i̶f̶i̶c̶a̶t̶i̶o̶n̶ ̶b̶e̶h̶a̶v̶i̶o̶u̶r̶ ̶i̶s̶ ̶s̶e̶t̶ ̶t̶o̶ ̶"̶S̶e̶n̶d̶ ̶M̶e̶s̶s̶a̶g̶e̶s̶"̶ ̶o̶r̶ ̶"̶B̶r̶o̶a̶d̶c̶a̶s̶t̶ ̶M̶e̶s̶s̶a̶g̶e̶s̶"̶,̶ ̶e̶v̶e̶r̶y̶ ̶I̶n̶p̶u̶t̶A̶c̶t̶i̶o̶n̶ ̶m̶u̶s̶t̶ ̶b̶e̶ ̶s̶e̶t̶ ̶t̶o̶ ̶"̶C̶o̶n̶t̶i̶n̶u̶o̶u̶s̶"̶

    3) There should be a way to define the parent of the instantiated prefab.

     
    Last edited: Sep 20, 2019
    reinfeldx likes this.
  2. Djayp

    Djayp

    Joined:
    Feb 16, 2015
    Posts:
    114
    Updated since 0.2.8 : most of it works fine ! I posted simple workarounds.
     
  3. Djayp

    Djayp

    Joined:
    Feb 16, 2015
    Posts:
    114
    Workarounds updated with preview - 1.0.0.

    Everything works nicely, UI Input Module included !