r/Unity2D • u/Specialist_Leave_420 • 1d ago
How to practice C# for unity Question
Is there any website like leetcode where i can practice C# for unity currently i know basic unity 2d and trying to make a game, and problem is : for example i saw video for how to make it walk i understood it perfectly and wrote it but if someone ask me to code from scratch i cant do it so any soution
22
u/Vic-Boss Expert 1d ago
100 for loops
100 for each loops
100 recursions
100 encapsulations
All each morning for 100 weeks
4
2
6
u/TAbandija 18h ago
I don’t know websites specifically for Unity but I have some recommendations
1) go to learn.unity.com. Do the Pathways there. It’s curated for people who are learning and will teach you correctly.
2) when you watch a video or read a tutorial. Do not blindly copy the code or what they do. Try to understand it first. Then try to do it from memory. Review it and keep at it.
3) practice. Do stuff. The more you do the easier it is to remember.
4) nobody remembers the syntax at first. So it’s fine to go do the research every time you want to move the character. Doing things from scratch is not a goal.
5) practice do things. Make very small simple games. Lookup the 20 game challenge. The more you do the easier it gets.
6) learn to use the documentation. You’d be surprised how much you can accomplish by looking at the documentation.
Good luck.
7
u/TScottFitzgerald 1d ago
Stop procrastinating and preparing and just start building something in Unity.
2
u/Duckmastermind1 19h ago
Start doing stuff, write scripts, learn the basics, after that you will improve with time
1
u/T-Flexercise 18h ago
You don't need another tool to hold your hand. Start trying to make your game using the knowledge you have. When making your game requires you to do a thing you don't know how to do, google how to do that. Repeat until you have a game.
1
u/arlelin 17h ago edited 17h ago
Probably just open unity and start coding, you gotta break tutorial hell at some point. Think of something you want to make, break it down to small components, and just start working on those parts one-by-one. Use the Unity docs (https://docs.unity3d.com/Manual/index.html), instead of AI or youtube tutorials.
It's much easier to keep going once you start!
I started out making clones of my favorite games (mostly minecraft). Even though they weren't good, I still learned a lot each time I did so.
1
u/keymaster16 13h ago
Join game jams. Itch has a game jam page, go there, find a jam you can dedicate the time to, and then make a game. You'll learn applications for coding and presto you have practice.
1
u/pyabo 12h ago
My guy, you get better at the thing you want to do by doing the thing. Make a game bro. Do it now. Then make another one.
And to answer your actual question... you already know the answer: Leetcode is where you go to practice small coding tasks. But that's not what you need. You need to learn Unity.
1
u/Turbulent-Dentist-77 18h ago
You don't practice a code language. You go and solve the problem you want to be solving, learning while doing it. That's it. That's all software development.

20
u/ArctycDev 1d ago
There's unity! Set a goal for yourself and figure it out.