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. Dismiss Notice

iOS 8 touch area radius

Discussion in 'iOS and tvOS' started by coshea, Oct 15, 2014.

  1. coshea

    coshea

    Joined:
    Dec 20, 2012
    Posts:
    317
    Hi

    Since iOS 8 you can use the radius of touch points, so pressing lightly with one finger will produce small radius, put pushing down big thumb or palm of your hand would produce a different result.

    As a developer of apps for kids this interests me, as many children lean on the iPad when they are using it, so it would be good to ignore those inputs.

    majorRadius in UITouch is what you need:
    https://developer.apple.com/library...tml#//apple_ref/occ/instp/UITouch/majorRadius

    Apparently its on its way
    https://twitter.com/willgoldstone/status/479504752955625472

    Was wondering if anyone already has this working via their own functions?

    This is how Paper are using majorRadius


    Thanks
     
    roarman-seo likes this.
  2. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    Bump! I badly want to play with this, too.
     
  3. willgoldstone

    willgoldstone

    Unity Technologies

    Joined:
    Oct 2, 2006
    Posts:
    792
    Hi guys sorry for the late reply I've been talking with our iOS team about this. Currently our major focus is making sure our 64bit support for iOS is excellent, and it's all hands on deck for that, we'll be back on things like this after that is more solid. We appreciate your patience on this guys!
     
  4. coshea

    coshea

    Joined:
    Dec 20, 2012
    Posts:
    317
    Hi all,

    Do we know if this is still coming to Unity?

    All touch input code coming from Unity, so to have to do a native plugin for touch input to enable this would be a bit rubbish :(

    Thanks
     
  5. odbb

    odbb

    Joined:
    Apr 13, 2014
    Posts:
    12
    Hi there,
    I released a 3D Touch Input Plugin today which also supports the radius of touch points. It's not comparable to a integration into Unity but maybe it helps and is an alternative for you guys. Have a look here and if you have any questions or feedback let me know about it in my support thread. :)
     
  6. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    Hello,
    After spending 3 weeks in store review, my plugin went live today. It's 3d touch plugin, but radius is one of the touch properties that is returned by the plugin. If the game is based on Input.touches, then it's really plug and play. You can find the plugin here, and support thread is here.
     
  7. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    Hey,

    Almost a year now and Unity hasn't supported this yet or am I wrong?

    Thanks,
    jrDev
     
  8. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    There's still no native support for touch radius.
     
  9. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    It shipped as part of iPad Pro Pencil support in Patch 5.2.3p1.
     
  10. Raimis

    Raimis

    Joined:
    Aug 27, 2014
    Posts:
    160
    Glad to know. I was about to work on iPad Pro plugin :). After I did 3d touch plugin :)...
     
  11. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,818
    Cool!

    So this means it's coming in 5.3?

    Thanks,
    jrDev