Closed idmarinas closed 1 year ago
Hello! Validate your project for broken/missed references. You can try building the asset separately in a new project to make sure if it works.
How can I do that?
Everything OK, no errors found, except in some HeroEditor prefabs.
Does the error happen with a new project + the latest asset version?
Yes,
I fixed it by changing Instances = Resources.LoadAll<FirearmCollection>("").ToDictionary(i => i.Id, i => i);
to Instances = Resources.LoadAll<FirearmCollection>("Resources").ToDictionary(i => i.Id, i => i);
This is weird. "When using the empty string (i.e., ""), the function will load the entire contents of the Resources folder." https://docs.unity3d.com/ScriptReference/Resources.LoadAll.html
At the same time, I can confirm that the latest version works fine for Windows and Android builds. For me and other users. "Build completed with a result of 'Succeeded' in 188 seconds (187747 ms)"
Yes, it build correctly for me too, but when I run the game in dev mode, I get the error in the console.
As I said, the asset doesn't contain missed references and was passed a review. Check your projects' files.
Hi:
I get this error, when build my game.
I cant find error, scriptableobject have attached the script.