Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

CrossPlatformInput Switcher

Discussion in 'Windows' started by AiRobotMedia, Jul 27, 2018.

  1. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    Hi All

    Does the Standard Assets CrossPlatformInput come with someway to switch between modes.

    I am building for Windows Store, which means that the user maybe on a XBox, PC or Mobile. I would like to have in my apps options menu a drop down menu which allows the user to select between XBox controller, Keyboard and Mouse, or Touch Controls.(Or at the very least a way to hide touch controls when its a PC or XBox)

    At the moment I have to build two packages, One for touch controls, Another for XBox and PC (because the touch controls will show up on a PC if I don't do a separate build). This is creating problems with the windows store acceptance.

    Thanks.
     
  2. AiRobotMedia

    AiRobotMedia

    Joined:
    Jun 13, 2018
    Posts:
    61
    I think I can use the Cross Platform Input initialize script to make this work at run time.

    Consider this issue closed.