Author Topic: Runs Well in Unity, Won't Run Properly On Build and Run?  (Read 2765 times)

woowoo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Runs Well in Unity, Won't Run Properly On Build and Run?
« on: May 26, 2014, 09:22:19 PM »
Hello,

I'm building a 2d game in unity and using the Free version of NGUI 2.7.0 found herehttp://forum.unity3d.com/threads/124032-NGUI-Free-Edition. Everything works well when I hit Play in Unity however when I Build and Run the scene I encounter a couple problems:

1) The graphics are much worse quality than when I press the play button. This happens even when I set the graphics quality to Fantastic.

2) When my mouse hovers over a menu button, the button gets larger as it's supposed to. BUT when my mouse is no longer hovering over the button, the button STAYS enlarged. Again this does not happen when I play the game in Unity, but it happens when I do a build and run.

3) When I click the options button, the main menu is supposed to disappear and the options menu will appear. When I click the back button, the options menu disappears and the main menu reappears. Again, this works perfectly fine if I hit play in Unity. However when I do the build and run, the options menu appears but the main menu stays.

4) In my options menu I have a couple sliders. In the build and run, the thumb (don't know if that's the correct term) of the slider leaves what appears to be copies of itself trailing behind its movement. This also does not happen when I press play in Unity.

I have no idea why this is occurring and would appreciate any suggestions/assistance! I tried searching the forum but I can't seem to find any posts similar to mine.

Also when I build and run one of the example scenes provided in the NGUI package, none of these problems occur. I can see one of the main differences is that the UI Root is 3D in the example whereas I created a 2D UI Root. Just a stab in the dark but could that be one of the reasons why my game is behaving like this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Runs Well in Unity, Won't Run Properly On Build and Run?
« Reply #1 on: May 26, 2014, 10:38:00 PM »
Sorry but NGUI Free doesn't come with support, as it's quite different from the current full version. However..

1. This is always either due to quality settings or texture import settings.

2. This behaviour differs too much from the current full version so I can't say.

3. Same as #2.

4. Set the camera to clear color. If there are trails left behind, then you don't have any camera clearing color.

Please don't ask further questions as I won't be able to help. As I said, NGUI free = no support.

woowoo

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Runs Well in Unity, Won't Run Properly On Build and Run?
« Reply #2 on: May 26, 2014, 11:03:35 PM »
Fair enough. I'm actually using the free version as a test run to see if I should purchase the current version and I think I'll go for it. Until then, thanks!