Hey guys need help with this i followed a YouTube video and now am stuck

so am following a YouTube video to make a game as am new to coding and with unity and all but anyway i got to near the end and i pressed play and it came up fix error CS0103.


Please read this thoroughly: https://discussions.unity.com/t/481379

Besides posting your code properly, please post your full error message as well.

Yeah, you’re much better off posting the code as well as the full error. Luckily, the error is visible in the screenshot. You’ve misspelled ‘FindObjectOfType’ on line 27.

2 Likes

As the others missed their opportunity to do so, i’d like to add a “welcome to the forum” to this post :slight_smile:

What MrArcher said is true, even tho spelling mistakes like these should be underlined with a red squiggly line. I’m not sure why that’s not happening for you. You may wanna look into that. Or maybe somebody who knows adds an explanation below.

Firstly you need to change your IDE theme to black we coders dont like white IDE theme and we dont want to help people who is using white theme secondly you made misspelling in line 27(“FindObjectOfType”).

I assume you are just joking…

If someone prefer to use bright UI that is fine. Maybe don’t know different. But next I expect to hear, “I don’t help anyone using Unity bright theme”. Btw, is ‘You’ not ‘Us’, nor even ‘Most’.

Ofc mate I am just kidding =) as you see in the end of my line I showed what is problem on his code =)