Modoium Remote Unity package cannot handle UnityEngine.Input
APIs in your scripts. You will need to replace all occurrences of UnityEngine.Input
with Modoium.Service.Input
. Just insert the code below into any scripts that use UnityEngine.Input
APIs.
using Input = Modoium.Service.Input;
Alternatively, you can manually replace each occurrence of UnityEngine.Input
to Modoium.Service.Input
. Currently, Modoium Remote supports the following APIs.
static bool Modoium.Service.Input.touchSupported;
static bool Modoium.Service.Input.touchPressureSupported;
static bool Modoium.Service.Input.multiTouchEnabled;
static bool Modoium.Service.Input.touchCount;
static Touch Modoium.Service.Input.GetTouch(int index);
Modoium Remote Unity package enables touchscreen use in the editor. If your scripts handle input from both the touchscreen and mouse, keep in mind that both will be active simultaneously.
For example, you won’t be able to tell which device a value comes from when reading an UnityEngine.InputSystem.InputAction
with the following bindings :