我有一个带有程序地形生成、草生成的项目,运行良好。
我为我的 Android 设备构建了一个版本,一切正常。 它的 fps 较低,因此我决定不生成草来观察差异。我在脚本中评论了生成草的部分,因此它不再生成草。 在编辑器 + 游戏窗口(游戏模式)中工作正常。
每次我为我的设备进行新的构建时,它都会完成(“成功”)但是草仍然在那里。
我变得疯狂,我只是希望它忘记我的应用程序的先前版本并构建像我的项目的播放模式一样工作的新版本。
我有这个警告:
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/[email protected]/Editor/BurstAotCompiler.cs:498)
Unity.Burst.Editor.BurstAOTCompilerPostprocessor:DoGenerate (UnityEditor.Compilation.Assembly[]) (at Library/PackageCache/[email protected]/Editor/BurstAotCompiler.cs:265)
Unity.Burst.Editor.BurstAOTCompilerPostprocessor:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/[email protected]/Editor/BurstAotCompiler.cs:189)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Unity 2021.3.21f1
我尝试过:
听起来好像在 Android 设备上没有看到更新。 Id 杀死进程然后卸载。
诗。正如您发现的那样,重新启动显然有点相同,但听起来确实像 Android 设备有问题,因为 Windows 无法使用 apk,所以不太可能继续使用它,也不这么说。它通常会在这些事情上发声。