Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

3D touch

Discussion in 'iOS and tvOS' started by WendelinReich, Feb 28, 2016.

  1. WendelinReich

    WendelinReich

    Joined:
    Dec 22, 2011
    Posts:
    228
    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
     
  2. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @WendelinReich,
    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
     
    WendelinReich likes this.
  3. Jee-Hyunho

    Jee-Hyunho

    Joined:
    Mar 16, 2015
    Posts:
    5
    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
     
  4. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    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