Hello everybody, I've just built my 2D game and this showed up: It builds the game, but when we're trying to launch the game, it suddenly crashes. Could you help us to solve these errors. Have a great day, Eddef & MatrixGfx
Running as admin did not fix the issue. Here's the output_log.txt Code (csharp): Initialize engine version: 5.1.1f1 (2046fc06d4d8) GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 11.0 [level 11.0] Renderer: NVIDIA GeForce 840M (ID=0x1341) Vendor: NVIDIA VRAM: 1972 MB Begin MonoManager ReloadAssembly Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.dll into Unity Child Domain Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\Assembly-CSharp-firstpass.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\Assembly-CSharp-firstpass.dll into Unity Child Domain Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\Assembly-CSharp.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\Assembly-CSharp.dll into Unity Child Domain Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\Assembly-UnityScript.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\Assembly-UnityScript.dll into Unity Child Domain Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.UI.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.UI.dll into Unity Child Domain Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.Networking.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.Networking.dll into Unity Child Domain Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.Analytics.dll (this message is harmless) Loading C:\Users\Martynas\Desktop\Testing_Data\Managed\UnityEngine.Analytics.dll into Unity Child Domain - Completed reload, in 0.263 seconds desktop: 1366x768 60Hz; virtual: 1366x768 at 0,0 <RI> Initializing input. <RI> Input initialized. <RI> Initialized touch support. Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\System.Core.dll (this message is harmless) Platform assembly: C:\Users\Martynas\Desktop\Testing_Data\Managed\System.dll (this message is harmless)
It seems like Unity does not have the correct access to the folder ([Project]/Temp/StagingArea) to generate the exe file. 1. Can you try create the exact exe file at the folder with the current user? 2. Is the exe current running? (check via task manager) 3. Is the folder read only? Or can you try building the game on another directory?
Thanks for your reply, we managed to fix the issue. We had a quit button and apparently the button didn't work as it was suppose to, instead of quitting when clicked, it quit right after launching the game.