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

Pages: [1]
1
NGUI 3 Documentation / Re: UIInput
« on: July 31, 2014, 03:25:01 AM »
Hello,

I have the same problem as Tripwire, so I have a text field with:
 - UILabel.maxLines = 0 (multi-line)
 - UIInput with hideInput = true

The problem is that on Android devices the native input field above the keyboard is still shown, even if hideInput = true. Setting maxLines to 1 will hide the native input field.
Is this an NGUI issue or a Unity issue?

Thanks for the reply.

2
NGUI 3 Documentation / Re: UIScrollBar
« on: July 11, 2014, 07:09:53 AM »
Thank you ArenMook, in the end I solved my problem, I set the Anchors on the scroll view as to execute OnUpdate, but that caused the jumps. Now I set it on OnEnable and it works fine.

Anyway yes, I meant that I set the default MomentumAndDrag setting on the scroll view. I also took a look at the example that you pointed out and it helped me solving some other issues.

3
NGUI 3 Documentation / Re: UIScrollBar
« on: July 10, 2014, 06:37:48 AM »
Dear all,

I have a problem with the Scroll bar and I cannot find a solution, so I ask here...

In my scene I have a scroll view with a bunch of items, and I have a drag scroll view on it. I also added a spring drag effect on the scroll view, they both works fine. Now I would like to add a vertical scroll bar as an indicator for the scroll view position, like the ones we can see on Android and iOS, so just an indicator which appears when the scroll view is dragged and disappears when the drag finishes. To do that I created a UIWidget with a UIScrollBar script attached, and a UISprite as its child. I also set the Widget as the Background in the ScrollBar script, and the Sprite as the Thumb. I then set the Widget as the Vertical scroll bar in the UIScrollView script of the scroll view.

Now, the scroll bar works as expected, but the spring effect on the scroll view is broken, when I drag the scroll view and I reach the beginning or the end of it, the scroll view jumps up and down and it flickers.

Am I doing something wrong, or the scroll view do not support the spring effect while using scroll bars?

Thanks in advance.

Pages: [1]