Hi, since updating to version 5.2 of unity from 5.1.1 I cant seem to change the games resolution mid game.
When it loads up it I had written in it to change the resolution to the last preference however this all of a sudden is breaking the game with the UI failing to load and the full screen game to appear all strange in the window and stretched.
All the error logs and say is this:
Completed reload, in 0.038 seconds
desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
Initializing input.
Input initialized.
Initialized touch support.
Platform assembly: C:\Users\Public\Videos\gamebuild\executiveassault_Data\Managed\System.dll (this message is harmless)
Platform assembly: C:\Users\Public\Videos\gamebuild\executiveassault_Data\Managed\UnityScript.Lang.dll (this message is harmless)
Platform assembly: C:\Users\Public\Videos\gamebuild\executiveassault_Data\Managed\Boo.Lang.dll (this message is harmless)
Setting up 2 worker threads for Enlighten.
Thread → id: 1248 → priority: 1
Thread → id: 1dcc → priority: 1
D3D9: attempt to lock null vertex buffer
D3D9: attempt to lock null vertex buffer
D3D9: attempt to lock null vertex buffer
D3D9: attempt to lock null vertex buffer
D3D9: attempt to lock null vertex buffer
etc
I took out of the script the resolution change at the beginning and now it works, however if anyone tries to change midgame it goes all strange again.
Just to repeat, this has started happening since updating from 5.1.1 to 5.2
Can anyone suggest a fix? I have already submitted this as an error to Unity.
Just a quick note I’m getting the same error every frame. The game works perfect in the editor and worked perfect in 5.1. Now in 5.2 every frame I see the D3D9: attempt to lock null vertex buffer. I’m trying to hunt down whats causing this, I think it has something to do with a UI mouse, but its hard to say at this point. Any one else have any hints?
I’m having the same error. I think it could be related to this issue, so I think I will wait until 5.2.1 is out. The temporal workaround for me is to avoid calling Screen.SetResolution if it isn’t necessary.
Cheers.
Also having this problem in builds after switching from 5.1 to 5.2. In addition to a bunch of D3D9: attempt to lock null vertex buffer error
messages in my output_log.txt, my uGUI HUD canvas stops rendering all together.
Hm, yeah, that issue was mentioned elsewhere. However, the issue is occurring for me on a Mac (not DX11), at high resolutions (2560x1600) and in windowed mode. That issue is currently marked as fixed, but almost every item in it is different from my experience. Not sure what to make of it! But thank you!
Yeah, my UI also disappears as soon as I change resolutions or quality levels, sometimes reappearing most times not; should be noted it is for Unity 5.x related UI stuff, while the old UI runtime technique is still working. (I’m in the midst of a transition).
Nearly drop-kicked my machine thinking that I had messed something up in a script…