Scriptable Object Error

how can i fix this error when i build the game?

1st image - Example shows where the item being used.
2nd image - shows the error for all items
3rd image - item create

3441923--272406--upload_2018-3-28_16-15-38.png


3441923--272409--upload_2018-3-28_16-21-19.png

3441923--272406--upload_2018-3-28_16-15-38.png

Well, those aren’t errors, they are warnings. And as it says, you have an object in the scene with a missing script. It’s possible you renamed a script so the filename and the class don’t match.

when i play the game, it works perfectly…can pickup item however when i build the game…i get those warning and can’t pickup any items (such as potions, coins, etc. )

Well, check those items in your game. Do they have the right scripts on it?

1 Like

I think that’s a naming issue (from memory*). Make sure each is in its own file and the filename and class names match.

3441967--272415--upload_2018-3-28_17-0-6.jpg

this how i create items, see image 3 as example…get 0 warning when game is played through unity however only get those warning while doing a build.

I’m talking about the scriptable object script, itself.

Does the filename and class name match?

1 Like

well nope…File name: item / Class name: Item

rookie mistake…

Thanks for the answer and quicky reply :slight_smile: