Building a Windows Standalone Player with Unity 2019.3.7f1 and Addressables 1.7.5, causes the Addressables System to output the following warning always:
The entire related log is:
Copying Addressables data from Library/com.unity.addressables/StreamingAssetsCopy/aa/Windows to C:/Users/crash/Documents/TestProject/Assets/StreamingAssets/aa/Windows. These copies will be deleted at the end of the build.
UnityEngine.Debug:Log(Object)
AddressablesPlayerBuildProcessor:OnPreprocessBuild(BuildReport) (at Library/PackageCache/com.unity.addressables@1.7.5/Editor/Build/AddressablesPlayerBuildProcessor.cs:37)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
Deleting Addressables data from C:/Users/crash/Documents/TestProject/Assets/StreamingAssets\aa.
UnityEngine.Debug:Log(Object)
AddressablesPlayerBuildProcessor:CleanTemporaryPlayerBuildData() (at Library/PackageCache/com.unity.addressables@1.7.5/Editor/Build/AddressablesPlayerBuildProcessor.cs:26)
AddressablesPlayerBuildProcessor:OnPostprocessBuild(BuildReport) (at Library/PackageCache/com.unity.addressables@1.7.5/Editor/Build/AddressablesPlayerBuildProcessor.cs:17)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
A meta data file (.meta) exists but its asset 'Assets/StreamingAssets/aa' can't be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.
Looking at the AddressablesPlayerBuildProcessor.CleanTemporaryPlayerBuildData code shows this line:
ā¦ which deletes the directory, but not the .meta file of that directory.
Reproduce
Build Windows Standalone Player
Unfocus / Focus Unity editor
Please fix that you also delete the .meta afterwards to avoid getting the warning with every build.
Is there a way to turn off the āCopying Addressables dataā message? I understand thatās important to output warnings and errors, but this log isnāt particular useful to me.
PS: No idea why Unity generates .meta files for files inside the StreamingAssets directory, this could be another bug. But itās been like this always.
Iāll flag this for the team to check out! If you havenāt yet, please also file a bug report with us. That process is detailed here: Unity QA: Building quality with passion
Iām being annoyed by this issue as well, but i donāt need to build anything. StreamingAssets was auto added to my directory (not sure why/when) and Addressables has been complains about it every time refresh my code:
Thatās because they copy aa to streaming assets in the pre-build process, then delete it in the post-build process. Unity itself can generate the meta file within that process that Addressables is not accounting for.
I have no idea what StreamingAssets/aa is so itās quite annoying to have it created in my project files and also getting the warning in my console all the time. Any solution to this?
Hey all, StreamingAssets/aa is where we copy the AssetBundles from the ScriptableBuildPipeline build into StreamingAssets for local bundles when doing a player build. Since thereās no need to constantly have that in your Assets folder we clean it up after the player build.
Iāll add a ticket for us to be sure to cleanup the meta file but in the meantime if you want to add this snippet to AddressablesPlayerBuildProcessor.CleanTemporaryPlayerBuildData it should clean that up for you.