Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
1
Found in
2020.2.0b2
Issue ID
1279619
Regression
No
AssetDatabase.FindAssets: Folder not found: 'Assets' is thrown on searching from InitializeOnLoad
AssetDatabase.FindAssets: Folder not found: 'Assets' is thrown on searching from InitializeOnLoad
We have custom code in package (com.unity.netcode) looking for assemblies while loading project using AssetDatabase.FindAssets.
Though both folders exist warnings:
AssetDatabase.FindAssets: Folder not found: 'Assets'
UnityEditor.AssetDatabase:FindAssets (string,string[])
AssetDatabase.FindAssets: Folder not found: 'Packages/com.unity.netcode'
UnityEditor.AssetDatabase:FindAssets (string,string[])
are thrown.
To reproduce:
1. Open project attached (sampleproject).
2. See warnings on loading project.
Expected result: No warnings.
Reproduces in 2020.2.0b2.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a7
InitializeOnLoad shouldn't be used for asset operations, because it is called before asset importing is completed. Instead a new variant of OnPostProcessAllAssets has been added. This new version includes a didDomainReload boolean to signal if there has been a domain reload. Asset loading is safe in this callback.
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b12