Quantcast
Viewing all articles
Browse latest Browse all 2891

Visual Studio error for referenced scripts

Hi, I switched over to Visual Studio recently and I always get an error whenever I have a public class referenced in another script. The error/warning message is: Warning CS0649: Field 'Script.referencedScript' is never assigned to, and will always have its default value null (CS0649) (Assembly-CSharp). even though in the script there are functions called from the referenced script. Actually everything works just fine when running the game but I am still curious what these warnigns mean exactly and how I can get rid of them. Thanks 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>