- Home /
ScriptableObject Custom Asset Error on Build and First Starting Unity
I followed a tutorial on using scriptableObjects to store data about inventory items and retrieve them.
https://www.youtube.com/watch?v=al_ZHo8GV4E
It works great. I expanded it to allow for multiple types of items through class inheritance. So potions have health variables. Weapons have damage variables etc.
That also works for the most part but when I first open Unity, and from then sometimes loading a new scene, I get an error that each ScriptableObject is a script that can't be loaded. When I select the scriptableObject and hit play it reconnects and is fine. I end up selecting all and after hitting play they all work. It's a pain but it's manageable.
But when I try to make a build the scriptableObject items aren't working. Any idea what could possibly be causing that behavior? I have no idea where to even start to troubleshoot. Any help in the right direction would be greatly appreciated. Thank you.
Your answer
Follow this Question
Related Questions
Inventory with Upgradable Items and Varying Stats 2 Answers
"Type mismatch" in Inspector for GameObject type in asset file 2 Answers
How to Instantiate objects that are Scriptable Objects 0 Answers
How to create custom editor for a class contained within another class 3 Answers
Inventory armor wielding proplem,How to convert from derived to base 1 Answer