Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
UnassignedReferenceException: The variable TheKnife of MeleeScipt has not been assigned. Assuming the code that you posted is your `MeleeScript.js` script file, then it says you are using a variable called `TheKnife` and it hasn't been assigned to anything. You're using it on line 12. You probably need to assign the TheKnife variable of the MeleeScipt script in the inspector. So the error is saying you might need to set a value for `TheKnife` in the inspector. Often variable that are visible in the Inspector are not Transforms. Might be better to make it a `GameObject`, and then get the `Transform` from that.

Viewing all articles
Browse latest Browse all 959

Trending Articles



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