Correct syntax for bindToAllDevices

Hi, I’m having trouble with the syntax for bindToAllDevices:
https://docs.unity3d.com/Packages/c…perimental.Input.Plugins.Users.InputUser.html

So far I’ve tried:
Code (CSharp):

  • public InputUser MenuUI;
  • MenuUI.bindToAllDevices = true;

which returned an error of:
‘InputUser’ does not contain a definition for ‘bindToAllDevices’ and no accessible extension method ‘bindToAllDevices’ accepting a first argument of type ‘InputUser’ could be found (are you missing a using directive or an assembly reference?)

and:
Code (CSharp):

  • InputUser.bindToAllDevices = true;

which returned an error of:
‘InputUser’ does not contain a definition for ‘bindToAllDevices’

(I have included ‘using UnityEngine.InputSystem.Users;’ for both of these attempts)

Does anyone know the correct syntax for this?

That package is apparently still experimental (see contents of URL you provided).

It’s possible they changed it.

Check what version you are running, or if you have updated it.

You might need to run either and earlier or a later version of the package to have this method.