Consider this project hierarchy inside “Assets”:
-
Asset 1 (set as addressable explicitly)
-
Subasset 1.1
-
Subasset 1.2
-
Folder 1 (NOT set as addressable explicitly)
-
Asset 2 (set as addressable explicitly)
-
Subasset 2.1
-
Subasset 2.2
-
Folder 2 (set as addressable explicitly)
-
Asset 3 (NOT set as addressable explicitly)
-
Subasset 3.1
-
Subasset 3.2
(With “Subasset” I mean ScriptableObjects inside another ScriptableObject).
When using AddressableAssetSettings.GetAllAssets with the parameter includeSubObjects set to true, all the assets and subassets will be in the result list except for “Subasset 3.1” and “Subasset 3.2”. It seems that assets inside an addressable folder (or its subfolders) aren’t processed to get the subassets regardless of the includeSubObjects parameter (seeing the addressables code it looks like the parameter isn’t even passed to the method that gathers the folder assets).
This behaviour is unexpected (and undesirable in my opinion), I assume it’s not intended?
(The addresables package version is 1.19.9)