How to assign a variable in the inspector

Hey,

I’m new at Unity so I’m quite clueless by now.
I’ve written a script and when I’m trying to run in the scene I get an error message which says that the variable that I’ve created isn’t assigned in the inspector. I don’t find where I can assign it, any ideas?

Inspector is a window in Unity Editor, you can find it in menu Window => Inspector. Then select your object that contains your script in Hierarchy (also window, can be found in same way) and you’ll be able to see components of that object alongside with your script in Inspector window, which supposedly should have assignable property which in its turn you can assign.

If that’s not the case then post the actual error and your script code.

P.S. And next time post an actual error in the first place, preferably with code.