Is possible play PC game with input from android device?
Hello I want ask, Is possible link PC with android and make input axis from android device to PC game? I mean something like "play PC game with androids button". There is already a similar way?
Answer by Statement · Oct 22, 2015 at 05:21 PM
See Unity Remote 4 if you want to get this functionality in the editor.
Unity Remote (currently at version 4), is a downloadable app designed to help with Android or iOS development. The app connects with Unity while you are running your project in Play mode from the editor. The visual output from the editor is sent to the device’s screen and the live inputs are sent back to the running project in Unity. This allows you to get a good impression of how your game really looks and handles on the target device without the nuisance of a full build for each test.
If you want a published PC game to get input from an Android app, you'd better look for a plugin for it (if any exists) or write your own input bridge. You can't replace the output of UnityEngine.Input as far as I know, so what you would do is change your code to use your own Input library, which can support your Android apps output (possibly sent over wifi/bluetooth - you'd have to look into how to do that?).
You can additionally write your own Input Module for use with Unitys Event System to seamlessly integrate functionality to the new UI and Raycasters.
Your answer
Follow this Question
Related Questions
Soft buttons not working in Unity Android 0 Answers
Is build.gradle take in account when building? 0 Answers
How turn On/Off android display backlight using C# only in Unity3d 1 Answer
creating plugin for android 0 Answers
Player follow touch when holding down your finger on the screen (C#) 1 Answer