Author Topic: unity5.4 and NGUI3.9.9 when call Screen.SetResolution game window black  (Read 4157 times)

noob22

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
Hi!
As it said in title, we build for standalone exe and have a requirement which can change window size by button.
So we use api Screen.SetResolution , it work fine in untiy 5.3.5 or before.
Recently we update to unity 5.4.0 , everything work fine but this api.
It seems  UI dont refresh in time , our game window become black, like no cameras rendering.
We try reactive UI root then it appear again.
Any suggestions?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: unity5.4 and NGUI3.9.9 when call Screen.SetResolution game window black
« Reply #1 on: August 17, 2016, 07:08:25 AM »
I can't say I've ever heard of this one... Can you first update to NGUI's latest 3.10.0, and if it still happens, submit a repro case for me to look at? support [at] tasharen.com

noob22

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
Re: unity5.4 and NGUI3.9.9 when call Screen.SetResolution game window black
« Reply #2 on: August 22, 2016, 03:19:16 AM »
I can't say I've ever heard of this one... Can you first update to NGUI's latest 3.10.0, and if it still happens, submit a repro case for me to look at? support [at] tasharen.com

Thx for reply.
I have resolved this problem and there is nothing about NGUI.
Unity5.4 change graphics API for Windows to only Direct3D9 for default.
When I select auto graphics API, the problem is resolved.