Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - joni.giuro

Pages: [1]
1
Hi everyone,
I know there are some threads about this around, but I couldn't get them to work anyway as I'm not using FingerGestures.
I'm using the code found on the Unity documentation:

  1. int fingerCount = 0;
  2.         foreach (Touch touch in Input.touches) {
  3.             if (touch.phase != TouchPhase.Ended && touch.phase != TouchPhase.Canceled)
  4.                 fingerCount++;
  5.            
  6.         }
  7.         if (fingerCount > 0)
  8.             print("User has " + fingerCount + " finger(s) touching the screen");
  9.  

I modified this code to check for a collision with a ray, from the NGUI camera to any element. If the hit element is on the layer 8 (the NGUI one), don't process it, and that kinda worked. It didn't process the touches on NGUI but it also stopped processing the touches in the upper half of the screen (even when they're not on an NGUI element). Any idea what I'm doing wrong? Or any idea for a better approach? I  work with the touches in different scripts, ideally I would like to write the code once and all the scripts will ignore the touches if they are on an NGUI element.
(sorry I can't paste my exact code right now).

Thanks

2
NGUI 3 Support / Re: ScrollView confusion
« on: January 14, 2014, 05:16:52 AM »
I love you <3 !

3
NGUI 3 Support / ScrollView confusion
« on: January 14, 2014, 04:57:33 AM »
Hi All!
I dowloaded NGUI a couple of days ago and it looks great, but I'm a little confused about the scrollviews, since the tutorials online use a script I can't find (I think they're updated).
Here's what I have. It looks good but it won't scroll :(



Any idea? Thanks

Pages: [1]