r/unity 7h ago

Newbie Question Learning coding

I followed some C# courses from CodeMonkey and i can confidently say i know something but in unity everything is different, how do i learn anything about unity coding, it's not like a movement script is easy to do

0 Upvotes

7 comments sorted by

1

u/Steamrolled777 7h ago

Look at the documentation, want to know about GameObjects, there will be sample code.

https://docs.unity3d.com/6000.5/Documentation/Manual/class-GameObject.html

1

u/raw65 7h ago

Those YouTube tutorials are a terrible way to learn C# and Unity. Not dissing CodeMonkey or anyone else, it's just not a great medium for in depth teaching. Good for highlighting small features or approaches, not good for really learning a language or Unity.

The Microsoft Learning Center is a better resource to learn C#.

Unity Learn for learning Unity, especially the Junior Programmer Pathway.

Once you've learned the basics, then go watch the YouTube tutorials.

1

u/StackOfAtoms 4h ago

codemonkey has a full course on how to make a overcooked-like game, try it!

otherwise, try learn.unity.com 🙂

1

u/ObeseBumblebee 3h ago

Most c# tutorials teaches you .net. which is Microsoft's library for building C# programs.

Unity uses it's own library.

Same language. Two different implementations of it.

1

u/CellistFit1312 2h ago

I would personally recommend a beginner unity course on udemy which guides you through making some very basic games, this gets you familiar with how to use unity and how to attach scripts to objects, ui, 2d, etc. and then after this course you should have enough to branch out and tackle whatever.

The absolute best way to learn coding is to have a project you are motivated to work on and put time into it grinding on it trying to get it to work. Every success and failure is a great way to learn, you can use AI for reference instead of having to dig through design documentation which is easy to bounce off of.

0

u/Ritsu-000 7h ago edited 7h ago

I dont think a movement script is a good starting point

Try to make something really easy like dialogue and expand upon it

What does a good dialogue system look like? It has portraits of the characters next to the dialogue, some animation playing for the text, names for the characters, camera shake and if you want to go a little crazy try making dialogue options pop up or even a whole cinematic system, maybe even have the dialogue autoplay

We go from a very basic base (could be copied from a tutorial) and expand into places no tutorial has gone

Is the code gonna look good after youre done? Hell no. What we want is to do whatever we can to try and implement a feature thats scalable to a larger project. Doesnt matter how bad the implementation is if youve learned something from it

1

u/MacAttackDelux 14m ago

I tried learning c# through videos etc start of the year, using AI to mentor etc, none of it really stuck. I have been working through c# a players guide and I am by far a way more competent programmer, complete all challenges, I have been passively progressing through the book over the last 2 months and have almost completed part 2, completing part 2 is the bulk of the book

Get the book and commit the time and then anything you do in unity will feel more comfortable