#(IN-44206) Asset has disappeared while building player to 'globalgamemanagers.assets' - path

1 messages · Page 1 of 1 (latest)

stray rapids
#

It's long standing build pipeline issue from 2022.2 up until 2022.3.2f1 LTS editor, the issue is not fixed yet until now that mostly the first attempt to build player runtime will fail and need to try second attempt or more to get a success build. It will more prompt to fail the build when u try to change reference at prefab and trigger baking at dots project or try to compile code then build the player will also easy to fail the build. 2021.3.x LTS editor has no such issue and always get success player runtime at first attempt.

UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions) ...```
#

@jaunty beacon IN-44206 Here's the case number for build error mentioned last time

jaunty beacon
#

that error seems to be a result of somebody (usually a non-unity package) deleting an asset in a callback that is called at build time, such as OnEnable(), Awake(), OnDisable(), or OnValidate() in monobehaviours that have [ExecuteInEditMode] on them; a lot of asset store packages are guilty of this, for example

stray rapids
jaunty beacon
#

no, that would break compatibility like crazy

#

the effects of doing this during a player build are not 100% reliable, though

stray rapids
#

🧐 I see. Then I would like to see much clearer error message to point me exactly which line of code has issue.

jaunty beacon
#

there are definitely conversations about possibly breaking compatibility in this way in order to allow for faster and more deterministic builds and imports in the future

#

without breaking compatibility it's hard to know, because it runs all callbacks together, and it would have to check all assets before and after every callback to see what changed and then complain about it, which would slow everything down

#

you could imagine a debug mode where it did that, but nobody has done that work yet

stray rapids
#

@jaunty beacon Any update for this case? Previously QA tells me that it's caused by Entities Graphics. 🤔

jaunty beacon
#

mmm who said

stray rapids
#

Liutauras