Author Topic: ngui not scale when run in desktop exe as fullscreen mode  (Read 4718 times)

Justion_Ko

  • Guest
ngui not scale when run in desktop exe as fullscreen mode
« on: December 13, 2013, 08:06:52 AM »
I have a scene which use NGUI 3.0.5 .In the scene i use a sprite with 1024x768 size as background.

Then i build it to a desktop exe, when i run the exe ,choose 1024x768 resolution and uncheck "windowed" , then the exe run into full screen mode.

And then there the problem comes:the background sprite fix its size as 1024x768, but my screen device size is about 1900x1024, in usual way when I use GUI.DrawTexture in this case, the texture will scale ,but NGUI does not scale.

I have tried to attach "UIStrech" to the sprite and choose style as "Both", but it still dosent scale to full screen.
Please give a way to solve this problem ,thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ngui not scale when run in desktop exe as fullscreen mode
« Reply #1 on: December 13, 2013, 09:36:56 AM »
First, upgrade your NGUI to the latest version.

Then watch the "new layout system" videos that were released with 3.0.7.

Lastly, look at "Example 1" that comes with NGUI.

Justion_Ko

  • Guest
Re: ngui not scale when run in desktop exe as fullscreen mode
« Reply #2 on: December 13, 2013, 10:18:24 PM »
thanks , it works!
 ;D ;D