Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Cannot put script on object

$
0
0
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?

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>