Unity Plugin For Joiplay -
void SimulateMouseClick(Vector2 screenPos, int button)
// Single tap = left click if (Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Began) SimulateMouseClick(Input.GetTouch(0).position, 0); // Two-finger tap = right click if (Input.touchCount == 2 && Input.GetTouch(1).phase == TouchPhase.Began) Vector2 center = (Input.GetTouch(0).position + Input.GetTouch(1).position) / 2f; SimulateMouseClick(center, 1); Unity Plugin For Joiplay
A “Unity Plugin for JoiPlay” is not a binary library but a scripting layer that adapts your existing Unity game to JoiPlay’s non-standard environment. By adding detection, input remapping, save redirection, and back-button handling, you can make your PC-targeted Unity game playable on Android via JoiPlay with minimal friction. void SimulateMouseClick(Vector2 screenPos
using System.IO; using UnityEngine; public class JoiPlaySaveRedirect : MonoBehaviour and back-button handling
JoiPlay stores saves in its own folder ( /sdcard/Android/data/com.joiplay.joiplay/files/ ). Redirect Application.persistentDataPath .
void Update()