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

Pages: [1]
1
NGUI 3 Support / Buttons in a scroll view, how to?
« on: February 10, 2014, 04:47:37 AM »
Hi

I'm sure that there's some information about this somewhere, but I seem to not have been able to dig something up that discusses my problem here.

So my goal is simple.. I have a scrollview (clipped panel), and I have some buttons that I want to:
A) Be able to scroll up/down in the scrollview, so the user can reach all buttons by scrolling.
B) Be able to interact with the buttons (i.e. click them).

So the problem arises as such:
If the user presses a button directly, he will not be able to drag the scroll view. If he presses outside the button collider (but still inside the scroll view) he can scroll.

I would like it so that if a user presses a button, but does not release and instead begin dragging, then he should be able to scroll the scroll view and the interaction with that button will be forgotten so to speak..

I hope that this makes sense. Any inputs on how to achieve this?

2
NGUI 3 Support / Re: Teach me the magic of scaling
« on: May 13, 2013, 07:22:42 AM »
I got what I wanted by changing the UIRoot "scaling size" setting to "Fixed size on mobiles".. So yeah..

3
NGUI 3 Support / Teach me the magic of scaling
« on: May 13, 2013, 06:36:34 AM »
Hi people

I should perhaps start by mentioning that I've been searching for an answer for this issue, but I've not been able to find something that satisfies my needs.

The problem is that I have made an NGUI interface consisting of several panels, sprites, buttons, labels and progress bars. These are all fine and dandy, but unfortunately I cannot get them to scale correctly.

The goal is to ensure that all scaling is relative, meaning that if a button takes up 5% of the entire screen area with a resolution of 480x320 then it should also take up 5% of the screen space with a resolution of 2048x1536.

So far I've come to the understanding that it has something to do with settings in my UIRoot script on my UI Root (2D) gameObject. I have however not been able to find a good description of how I should change these settings in order to get what I want. Currently when resolution goes up, my GUI seem to either get smaller (or stay unchanged in terms of pixel-height/width). Whatever it is the result is that the interface will take up a smaller percent of the screen area as resolution gets higher. This especially becomes apparent when building my game to the iPad where my interface will be less than half the size that I want it to be. Anchors does however seem to work as intended..

I hope someone will be able to give me some guidelines here as the documentation is pretty vague on the topic.

Pages: [1]