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

C#: Error message "Cannot convert type "UnityEngine.GameObject" to "objectname"

$
0
0
Hi, I'm working on a project for school and it's my first time using C#, but for some reason in my game when I have the code to make an object appear as an object in the actual game it just gives me an error message of '"Cannot convert type "UnityEngine.GameObject" to "objectname"'. I've tried everything I can and it's not working, here's the error![alt text][1]. And the code I have for it![alt text][2] [1]: /storage/temp/112020-capture1.png [2]: /storage/temp/112021-capture.png If anyone knows how to fix it or what I could do, any help would be greatly appreciated. Thanks for reading, and in advance.

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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