Start() method :(

hi all :slight_smile: The problem I have is the script in Visual Studio 22, everything works but I get this error. Just want it to light up. like in the picture. Can anyone help?

Hi kiwiblazer,

I do not see any problem in your code. Did you test your script in Unity?

Since the code gets executed in Unity, messages like “Method ‘XYZ’ is never used” are not necessarily true. You don’t call the Start method in your own code but the Unity Engine might call it from outside, and VS might not know that.


See also:

1 Like

Thanks that makes sense. Thanks for the help :smiling_face:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms