- Home /
getPressure for touch pressure on Android or iOS
Unity3d supports Touch, but is there a way to fetch the pressure of a touch on mobile devices?
Answer by almo · Jul 27, 2011 at 06:00 PM
iPhone/iPad has no such thing, in Unity or otherwise. I'm not certain, but I suspect Android doesn't, either.
Answer by Jaroslav-Stehlik · Nov 26, 2012 at 07:36 AM
Wrong, Garageband detects the pressure by accelerometer. Because when you tap hard on device it produces light motion. Try to wiggle with your device during play and you receive higher "pressure". This technique works quite well. used on aquarium when user taps on the glass the sound gets louder.
Answer by SolidRoots · Aug 07, 2018 at 03:47 PM
Touch pressure is now available on devices that support touch pressure feature. You can check this using touch.pressure from your individual touches returned by GetTouches()