News: Enjoy our Christmas offer 30% off on our latest package Tower Defense Level Kit http://u3d.as/m7h

  • August 18, 2018, 04:42:04 AM

Login with username, password and session length

Author Topic: Any known issue with boxcollider2d and EasyTouch ?  (Read 868 times)

Offline francois.dallaire

  • Newbie
  • *
  • Posts: 2
Any known issue with boxcollider2d and EasyTouch ?
« on: December 12, 2016, 03:12:30 PM »
Hi :)
I have a normalsprite with a quick drag script component on it and a collider2d.
I cannot receive any gesture events on it.

Is it a know issue ?

Offline beocat

  • Newbie
  • *
  • Posts: 3
Re: Any known issue with boxcollider2d and EasyTouch ?
« Reply #1 on: December 13, 2016, 01:15:34 PM »
Hi

I think I have the same error as you. After upgrading to Unity 5.5.f03 my quick touch triggers don't work with the BoxCollider2D. I have changed it to a BoxCollider (3D), and it works again.

Offline Nicolas

  • Administrator
  • Hero Member
  • *****
  • Posts: 792
Re: Any known issue with boxcollider2d and EasyTouch ?
« Reply #2 on: December 13, 2016, 03:23:40 PM »
Hi,

Have you correcly 2D Collider in EasyTouch inspector ?

Offline beocat

  • Newbie
  • *
  • Posts: 3
Re: Any known issue with boxcollider2d and EasyTouch ?
« Reply #3 on: December 14, 2016, 01:21:20 PM »
I'm pretty sure the setup is correct. It worked perfectly in Unity 5.5.b01 and didn't work after upgrading to Unity 5.5.f03. I can try and see if I can reproduce the error in a new project.

Offline edwardr

  • Newbie
  • *
  • Posts: 5
Re: Any known issue with boxcollider2d and EasyTouch ?
« Reply #4 on: March 08, 2017, 12:58:24 AM »
Hi,
Did you found a solution for your problem? Maybe it can help me solving my issue...
http://www.thehedgehogteam.com/Forum/index.php?topic=486.msg1761#msg1761

thx

Offline francois.dallaire

  • Newbie
  • *
  • Posts: 2
Re: Any known issue with boxcollider2d and EasyTouch ?
« Reply #5 on: May 22, 2017, 05:22:17 PM »
Found the problem. If you keep the same EasyTouch object between scene it will not update his list of cameras at each merge.
There's a check for this in the start function but never again.

      int index = touchCameras.FindIndex(
         delegate(ECamera c){
            return c.camera == Camera.main;
         }
      );
      
      if (index<0)
         touchCameras.Add(new ECamera(Camera.main,false));

I think this code should be in the update as well.

Thx
Francois

Offline Nicolas

  • Administrator
  • Hero Member
  • *****
  • Posts: 792
Re: Any known issue with boxcollider2d and EasyTouch ?
« Reply #6 on: May 27, 2017, 08:58:25 AM »
Hi,

Thank you for your feedback, I add your fixe

Nicolas