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

Pages: [1]
1
NGUI 3 Support / Re: why,popuplist postion error
« on: November 30, 2014, 09:26:17 AM »
I use Unity 4.6 Free
NGUI 3.7.6p2
it still have this issue .
 I don't have pro version to verify .


2
NGUI 3 Support / Re: why,popuplist postion error
« on: November 27, 2014, 05:44:18 AM »
Changed UIRoot to Constrained work well. I know .

So I mean in this case
UIRoot : Scaling Style = ConstainedOnMobiles
Content With = 1280
Content Height =720

And put Popup list in right side or left side  will not working well . 

I attach the package .
You can import and open popup scene the see the result .
(the file is over 1024k )
I have put it in www
please download here 

3
NGUI 3 Support / Re: why,popuplist postion error
« on: November 26, 2014, 07:56:36 AM »
I have modify code as below , But seems not really fixed.
It only fix Y problem but X still have some problem  when place popup list in left side or right side

It could be reproduce as below:

UIRoot : Scaling Style = ConstainedOnMobiles
Content With = 1280
Content Height =720

And put Popup list in right side or left side   (reference as attach image)


Unity 4.5.5f1
NGUI 3.7.6p2




Yeah, just flip the y.
  1.                         min = t.localPosition;
  2.                         max.x = min.x + mBackground.width;
  3.                         max.y = min.y - mBackground.height; // <-- minus instead of plus
  4.                         max.z = min.z;
  5.                         Vector3 offset = mPanel.CalculateConstrainOffset(min, max);
  6.                         t.localPosition += offset;

Pages: [1]