Quiz Code Error Message

I did the same code as the instructor did in the video and I still get this error.

Here’s my error message:

Here’s my code:

Hi,

C# is case-sensitive. The property in the Image class is spelt “sprite”. Remember you can also look at the lecture code changes via the link in the Resources of each lecture.


See also:

Please explain what you mean in more detail. I am a beginner at programming with C# and Unity and I do not understand.

C# is case-sensitive. That means Sprite and sprite is not the same thing. You used buttonImage.Sprite, but that does not exist. You have to use buttonImage.sprite

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

Privacy & Terms