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


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


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?
I think that’s a naming issue (from memory*). Make sure each is in its own file and the filename and class names match.

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?
well nope…File name: item / Class name: Item
rookie mistake…
Thanks for the answer and quicky reply ![]()