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

Pages: [1]
1
NGUI 3 Support / GUI elements not adjusting for screen size?
« on: August 05, 2013, 06:29:56 PM »
First off, thank you to ArenMook for answering my last question. It took me a few days to get back to this, and it would probably be rude to bump a thread that's off the front page just to say thanks, so I've put that here.

That being said, I have another question: How I get my GUI to resize with screen size changes? The closest matches I could find on the forum search were to either unset "Automatic" on UIRoot, which does not appear to be an option in the latest version, or to code a solution.

Now, I could code a solution, but NGUI probably already has this solved, so rather than re-invent the wheel, I've decided to ask on here.

What's the standard solution for re-sizing GUI elements with screen-size changes?

2
NGUI 3 Support / No sound playing after nGUI added to project
« on: August 02, 2013, 06:02:53 PM »
After transitioning over to the new version of nGUI for an older project I wanted to shake the mothballs out of, the sounds no longer play. When rendering through the nGUI camera, no sounds play. When using the previous rendering setup (Turning UI Root off and turning Main Camera on), it plays the sounds without problem. This is why I think the problem is an interaction with nGUI, and why I am posting on the nGUI forums.

The steps I took are:

* Back up to Git.
* Re-import nGUI.
* Test UI does not display properly.
* Completely remove nGUI, all assets and hierarchy (I didn't have much for a GUI yet).
* Save scene and exit.
* Reload project and scene.
* Add nGUI to the project and save scene.
* Close project and scene.
* Reload project and scene.
* Create a GUI using the UI Wizard.
* * Camera is Advanced 3D.
* Set the camera to also render Default.
* Adjust position, scale and Z values of the camera so that it renders the scene, and set it to Orthographic.
* Add a temporary "Score: " label, to test.
* Play the game.
* The game and nGUI display properly.
* * The sound does play very briefly when I stop the game.
* Check on Google. Nothing useful found before the results have nothing to do with nGUI.
* Check on Youtube. Same.

I'm a near-complete beginner with nGUI. However, this behavior doesn't seem standard. How do I fix this?

Pages: [1]