3D touch

Hi everyone,

I just noticed that Unity seems to support 3D touch now. There is Input.touchPressureSupported as well as a pressure field in the the Touch class. But there are still several assets on the asset store that claim to enable 3d touch support for the iPhone 6s, and they aren’t cheap…

So here’s my question: could anyone test+confirm that ‘pressure’ works correctly on new iPhones? Is this support fully transparent or do we have to set it up to enable 3D touch recognition somehow?

Thanks! Wendi

Hi @WendelinReich1 ,
As the person that implemented this support, I can tell you that it works out of the box in Unity on devices that support 3D Touch. As of right now, it only works on the iOS platform. If you find any issues with it, please let me know.
Thanks,
Chris

1 Like

Hi @christophergoy ,
I have find Input.touchPressureSupported bug. Please check this out.
After first install the app, Input.touchPressureSupported always return false even Toggled 3D Touch ON in iPhone 6s/6s Plus Settings.

  1. iPhone 6s/6s Plus Settings → Toggled 3D Touch ON
  2. Install and Start App
  3. Input.touchPressureSupported return false → Problem!
  4. Terminate and restart App
  5. Input.touchPressureSupported retun true

Test Devices: iPhone6(IOS 10), iPonee6+(IOS 9.3.5),
Unity Version: Unity 5.4.0p1, Unity 5.4.1f1

Hey @Jee-Hyunho ,
Thanks for bringing this to light! Could you file a bug report with your reproduction case and post the case number here. I will be able to take a look at it then.
Cheers,
Chris