I'm a beginner to this.
I want to put my script on my object, the script is called WorldInteraction, and on line 6, it says
public class WorldInteraction : Mono Behaviour.
However, a message pops up, saying:
"*Can't add script component 'WorldInteraction' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match*"
I know this was answered, so I tried to change my script name to WorldInteraction, pasted the code back in, and retried.
Can someone help?
↧