Unity new build does not update script

0

I have a project with procedural terrain generation, grass generation, working well.

I make a build for my android device, everything is working. It has low fps, so I dedice to not generate grass to see the difference. I comment the section that generate grass in my script, so it do not generate grass anymore. Works fine in editor + game window (playmode).

Each time I make a new build for my device, it is completed (“succeeded”) BUT grass is still there.

I am becoming crazy, I just want that it FORGET the previous version of my app and build the new one that works like in the playmode of my project.

I have this warning :

Unable to find player assembly: Library/PlayerScriptAssemblies/UnityEngine.TestRunner.dll
UnityEngine.Debug:LogWarning (object)
Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler/BurstAOTSettings,UnityEditor.Compilation.Assembly[]) (at Library/PackageCache/com.unity.burst@1.8.2/Editor/BurstAotCompiler.cs:498)
Unity.Burst.Editor.BurstAOTCompilerPostprocessor:DoGenerate (UnityEditor.Compilation.Assembly[]) (at Library/PackageCache/com.unity.burst@1.8.2/Editor/BurstAotCompiler.cs:265)
Unity.Burst.Editor.BurstAOTCompilerPostprocessor:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/com.unity.burst@1.8.2/Editor/BurstAotCompiler.cs:189)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Unity 2021.3.21f1

I tried:

  • change package name and version
  • refresh script
  • reimport script
  • changing name of the script and so his calls in other script
  • reimport all
  • clean build
  • deleting build folder and previous apk on my device
  • reopen unity

1 Answer

1

Restarting both PC and device worked. It kill the processes. But restarting and re-opening project takes 10 minutes, not the best solution…