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

Pages: [1]
1
NGUI 3 Support / Re: UI Panel to full screen?
« on: February 18, 2014, 01:25:10 PM »
Ok...So if you look at my OP you should see that I was doing exactly as ArenMook suggested, i.e. anchor to UIRoot with left to left, right to right with padding of 0. 

So, why was I getting the wrong behavior?   The answer, I had left a camera in the scene that shouldn't have been there.  I had the UI camera in the scene, but I also had another camera (the default one from unity) in the scene.  It was causing the strange behavior I was seeing (i.e. the sprites not filling the screen).

So, for anyone looking in the future, chalk this up to user error, and watch out for the extra cameras.  :)

2
NGUI 3 Support / Re: UI Panel to full screen?
« on: February 15, 2014, 10:32:49 PM »
OK, maybe I am doing something I shouldn't...I use a UIPanel, set the clipping to constrain and then set it's size to the size of the UI Root (i.e. Anchor left, right, bottom, top to 0), then I set widgets as children of the panel, and then set their size relative to the panel.    My initial thought was that I could get the UI to take the full screen this way, but maybe I shouldn't do it that way?

Ignoring that I am using a panel then, how would I make a sprite the full size of the screen?  Say a background sprite that was tiled?   Should I have it anchored to UI root, or some other method?

3
NGUI 3 Support / UI Panel to full screen?
« on: February 14, 2014, 11:29:12 AM »
Hi all.   I am trying to do something that I think should be simple, but in practice is eluding me.   I would like to have a UI Panel take the full screen, and the controls it contains to move relative to the position of the panel after it gets its resolution. 

I started out by anchoring (with the new system) the UI Panel to the UIRoot and simply setting left: 0, right: 0, bottom:0, top:0 thinking this would inherit the UIroot size and therefore be the fullscreen.   However, this isn't the case, I get the full screen in height, but not width (this is with pixel perfect or fixed on mobile with a height max of 900).   Also, when I do this my widgets move after I hover over them (especially buttons which have a tween scale on them), and go off screen.   

So, my real question is:  how do I get a panel to be full screen?   and should I even be trying to scale the UI to full screen, what is the best practice here?   I want a program that can be used on mobile, but also pc?

Thank you in advance.

 

4
NGUI 3 Support / Re: ScrollView auto height to fill rest of screen
« on: February 13, 2014, 05:53:22 PM »
Is this advice still valid after the latest release?  UIStretch is deprecated right?   so how would one do this now?

Pages: [1]