Month: September 2018

Unity touch to swipe left right forward and back(down) : mobile input for android and IOS – Complete ScriptUnity touch to swipe left right forward and back(down) : mobile input for android and IOS – Complete Script

[java] using UnityEngine; public class Swipe : MonoBehaviour { private Vector2 fingerDown; private Vector2 fingerUp; public bool detectSwipeOnlyAfterRelease = false; public float SWIPE_THRESHOLD = 20f; public GameObject gameObeject; public float

Android multiple runtime permissionAndroid multiple runtime permission

Step -1 : Add the permissions on Menifest. [java] <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"></uses-permission> [/java] Step 2 : Request for permissions [java] //Permission function starts from here