i have a build task in ci ,the task is
but i get error in step2 ,cause AddressableAssetSettingsDefaultObject.Settings is null ,please help
–
unity:2019.4.10f1
addressables:1.16.7
Did you find out why this was? I’m seeing the same outcome using the same addressables/unity versions.
From the documentation
https://docs.unity3d.com/Packages/com.unity.addressables@0.4/api/UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.html
“Gets the default addressable asset settings object. This will return null during editor startup if EditorApplication.isUpdating or EditorApplication.isCompiling are true.”
I’ll kick this to the team for some guidance.
wolilio
November 17, 2020, 6:12am
4
no. but it’s fine when run the command as root , so i don’t dig deeper , you can give a try
locbui
December 17, 2020, 3:46pm
5
Hello guys, I got the same issue here.
locbui
December 18, 2020, 3:56am
6
AddressableAssetSettingsDefaultObject.Settings is null when making build from command line with batch mode enable
Peter77
December 20, 2020, 6:09pm
7
Are you able to reproduce this problem reliably? Because I’m not:
We get random null reference exception caused by the following line when building our game on the build server:
foreach (var group in AddressableAssetSettingsDefaultObject.Settings.groups)
The surrounding code looks like:
if (!UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.SettingsExists)
{
Debug.LogWarning("Addressable Settings don't exist, creating new ones.");
UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject.Settings =
UnityEditor.Addre…
If you have a reproduce, can you please submit a bug report ? Without an user bug report in their system, nothing really seems to get done here.
I just submitted a bug report for my repro case (details in the thread linked by @Peter77 )
Does anyone have a workaround for this?
Using EditorCoroutines to await the compilation doesn’t seem to work as the recompile seems to kill the executing code.
mons00n
January 19, 2021, 7:21am
10
a workaround was just suggested from one of the unity guys in the linked thread MikeHergaarde, might want to give that a shot (I have not yet)
1 Like