- Home /
Answer by BeauWorlds · Oct 22, 2015 at 08:13 AM
Hi Kvatthro
As far as I know you will not be able to do this using unity api, you will have to write an iOS plugin. See this unity tutorial for more information.
Otherwise I've had a quick look on the assets store, there is this plugin that costs $35. There are one or two others as well.
I'd give you more advice but I've never written a plugin for iOS, only Android, but if you don't already know, a plugin allows you to do things through the devices native code and you'd use Apple's 3D touch api Then you compile these scripts and put them into Assets/Plugins and you can communicate with your plugin. You would create the plugin using Xcode.
Unity may well integrate 3D touch at some point, I don't know for sure
Touch pressure on the iOS platform has been supported since Patch 5.2.2p1. Look for Touch.pressure and Touch.maximumPossiblePressure in the scripts.
Your answer
Follow this Question
Related Questions
How do you map touch to one of the input axes? 1 Answer
Simultaneous Touch Drag Controls 0 Answers
Control the camera with a half of the touch screen 0 Answers
Touch Controls for a 2D ball game 0 Answers