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 - g0vi

Pages: [1]
1
This worked for the panels at 0 and 180 rotations but not with panels rotated at 90 and 270. So what I did was just set a bool to switch between:

Vector2 totalDelta = UICamera.currentTouch.totalDelta; for 90 and 270 degrees

&

Vector3 totalDelta = UICamera.currentTouch.totalDelta; for 0 and 180;
totalDelta = transform.rotation * totalDelta;


2
Actually! If you are still reading this, according to the UICenterOnChild.cs, "Next Page Threshold requires a sorted UIGrid in order to work properly". So I actually do need "Horizontal" sorting for my threshold to work properly for my rotated scrollviews.

3
Thanks for reply,

Comparing it to the Example 7 helped. When I set the sorting on my grid to "None" instead of "Horizontal", the odd behavior stopped.

Thanks!

Joe

Edit: Grammar

4

When I rotate a panel 180 degrees the center on child has a problem when I drag beyond the panel, sending it in the wrong direction. The problem goes away when I set the UIGrid's "Next Page Threshhold" to 0. If the threshold is anything larger than 0 then it acts up.

Here is a quick .gif I made replicating the problem: https://i.imgur.com/wgdz3Xz.gif

Any ideas?

5
NGUI 3 Support / Re: Not getting a down state with Touch
« on: April 03, 2014, 09:21:15 AM »
I made this short video to demonstrate my issue:

https://www.youtube.com/watch?v=8RsJxKqM1yU&feature=youtu.be


6
NGUI 3 Support / Re: Not getting a down state with Touch
« on: April 02, 2014, 07:46:56 PM »
Yeah that's true, but still I am not seeing a pressed(normal -> pressed) state in which the color or sprite changes. Only with mouse does it happen.

Thank You for getting back to me!

Joe

7
NGUI 3 Support / Not getting a down state with Touch
« on: April 02, 2014, 06:09:31 PM »
Hello!

I came across several topics in these forums about using touch, but nothing quite relating to my issue. My problem is simple enough, when I "tap" a sprite (with "UIButton" and the collider attached) the color does not change nor does it switch sprites for the appropriate states(hover, pressed). It works when I click but not when I use touch "tap". However when I tap, I still am able to do all the specified tasks in my OnPress() or OnClick() methods.

Any ideas ?

Thank you

Joe

Pages: [1]