Hi
I am stuck I have done everything but for some reason I get when I go to Waves “The associated script can not be loaded. Please fix any compile errors and assign a valid script” Has this happened to anyone else?
Hi Gummik,
Welcome to our community!
Please note, it’s better to copy/paste your code and apply the code fencing characters, rather than using screenshots. Screenshots are ideal for displaying specific details from within a game engine editor or even error messages, but for code, they tend to be less readable, especially on mobile devices which can require extensive zooming and scrolling.
You also prevent those that may offer to help you the ability to copy/paste part of your code back to you with suggestions and/or corrections, meaning that they would need to type a potentially lengthy response. You will often find that people are more likely to respond to your questions if you make it as easy as possible for them to do so.
The yellow message is a harmless warning, probably caused by a bug in Unity. Double click on the message in your Console, and add = default;
behind the variable declaration.
NullReferenceException means that a reference (“link”) to an instance is missing. Double click on the error message to see to which line in your code it is referring. If you exposed a field in the Inspector, make sure that it’s not empty.
Hope this helps
See also;
- Forum User Guides : How to apply code formatting within your post
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.