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

Pages: [1]
1
I've found a workaround:

For the shaded background you see, I simply script it to be:
GetComponent<UISprite>().SetDimensions((int)scrollView.GetComponent<UIPanel>().width,(int)GetComponent<UISprite>().height);

So that the backgrounds width and height is that of the scrollview's.
Then if i anchor all the buttons to the sides of the background, they will follow, and still be able to scroll through the ScrollView!
Then lastly, I will just have to figure out the aspect ratio between the buttons and the black background, and set the widths/heights accordingly.

2
Didn't solve it :/
Here is my screen:
http://i.imgur.com/vcDQoQZ.png
The top one is 1280x768
The bottom is 480x320

Now I've anchored the scrollview so it always has the same size relative to the screen, but then the content obviously doesn't follow, and get's clipped instead. Just need that last step now to make the content resized as well.

3
I tried adding anchors to the content of a ScrollView. While it gives me the correct size, I can't move it, since it's locked to the screen edges. So how exactly do we use anchors with contents of ScrollViews, or just make it relative to screen size?
Been searching and trying for hours now and this one just gets the best of me...

Pages: [1]