- Home /
Old build present after building to a new folder on desktop.
Hi Fellow Adventurers...
I have completed a game that runs fine with no apparent errors in scenes that I can see and runs in unity great. Now I want to build iteratively test and debug. I think it was working correctly up to a few days ago. I did not that normally I use the ‘build settings’ window however I did at one-point hit ‘build and run’ I am wondering if this is what is causing the issue.
Things I have tried over the past few days without any luck: (Building for PC for 64bit) although have tried the trick of switching architecture to 86 and vice versa to see if it builds correctly (it does force recompilation of scripts however no dice!). 1. Have tried changing build settings to UWP. 2. Have tried restart Unity after clearing Temp file (no luck) 3. Have tried removing the obj folder in project root to get it to build a clean build (didn’t work). 4. Have tried to restart hardward. 5. have also tried moving scripts in folders, at present however most scripts are at root of assets with some in a 'scripts' folder. All moving these did was crash the project when trying to run.
Have also tried deleting the Library and Obj folder in combinations (leading to destruction of the project).
So either; 1. What I have tried is not correctly done. 2. There is an error somewhere that I do not know causing the issue. 3. There is some bug somewhere (which I hope there is a workaround somewhere). Any help or advice or even repeating the things that I have tried previously is worth going over again.
N.B. have noticed that there is an error on one enemy object where the animation will not stop on death by player in the old build, whereas inside unity it is fine. It appears it is sharing another animator and getting confused between the transition bools used in the different prefabs (they are however unique in the prefabs folder). However I think that this is fixable if I can get the build to a later increment.
Again any help is gratefully appreciated.
J
Amendment:
Actually build give old version, build and run gives these errors (although not sure what to do about them if I cant get build to work:
UnityEditor.BuildPlayerWindow+Build$$anonymous$$ethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuild$$anonymous$$ethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\$$anonymous$$ono\BuildPlayerWindowBuild$$anonymous$$ethods.cs:187 at UnityEditor.BuildPlayerWindow.CallBuild$$anonymous$$ethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\$$anonymous$$ono\BuildPlayerWindowBuild$$anonymous$$ethods.cs:94 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Error building Player: 2 errors
Controller '$$anonymous$$ushroomPlatform': Transition '' in state 'idle' uses parameter 'collidingWithPlayer' which is not compatible with condition type. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)