This Is Why You Can’t Figure Out Programming In Unity! (C# Tutorial)

preview_player
Показать описание

In this video I go over a bunch of tips and tricks that you can use to learn all about getting into programming in unity. I also have linked to a bunch of sources which you can follow for further learning.

Join My Pateron for an exclusive Couch Combat Beta:

LINKED VIDEOS:
6.Unity C# Tutorial - All About Functions & Parameters

Unity Architecture for Noobs - Game Structure

How to use Unity Scripting API

I Wish I Had Known This Before I Started Unity Game Development...

FIX your BUG much faster in Unity! [Simple tricks]

Chapters:
0:00 Intro
0:36 Basic Principles
4:14 Learning To Learn
4:39 API
5:11 Unknown Unknowns
6:15 Don’t Waste Time
7:42 How To Debug
Рекомендации по теме
Комментарии
Автор

One thing I would suggest when learning how to code is if you use a tutorial try and break the code down to try and figure out how it works and how you could use different bits of it for different uses. When I started that was a pretty easy way to find things I didn’t understand so I could go research them and figure it out.

HoodedOlive
Автор

Another great tip for debugging is to use breakpoints in code, allows you to step through code one line at a time. This is a great way to figure out when something breaks, also saves you having to write Debug.Log everywhere in your code.

peanutgamerguy
Автор

Good video. Learning how to learn really IS so important. It took a few gos for Unity to really click with me but now I’m hooked!

SuperDutchrutter
Автор

Neat video! Identifying your shortcomings as a dev and learning how to improve is always key.

I'd like to suggest looking into automated testing to help your debugging process. Being able to run a suite of tests to confirm everything is working is much faster and easier than having to manually play test. For example if you have a test for your DoExplode function. One test passes in Big explode and one test passes in Explode, you'd find out that code isn't working as expected. After some inspection you'll realise the parameter isn't being used.

Skeffles
Автор

Unity tips:
Try to use Unity API code instructions as less as possible. You only really need it to interact with the physics engine.
Challenge yourself to use the least amount of update calls.

Joso
Автор

I used to want to learn unity but as a kid with free time it’s be better if i learn normal C sharp then unity

monstereugene
Автор

This video needs a section on breakpoints. You can literally mark a part of your code and when the debugger gets there, it will help you step through your code and see what's really happening and even peek at the values of variables. It's insanely useful and I didn't know about it for years.

Connorses
Автор

Don't repeat yourself is a given, but what you really should keep an eye on is a program in a way that the thing you are changing the value of can only be done in one way (preferably a functional pipeline).
Following this rule, you will be able to get the complete response from an error, from the point an action originated, through every function it passed through, and what it ended up breaking.

Example: Firing a gun can only be done in the Gun script. Once the bullet in whatever way reaches a target, what you want to do is make the health script detect it was shot at, decreasing the object's health. You must not allow the Gun script to access any of the health script properties and you must not allow the Health script to access any property of the gun script. Also, try to use functions for every variable change.

Try to not make anything accessible globally, you really don't need global access to anything. It may be easier until you develop a certain way of thinking, it is an old concept that is fine to use in embedded systems but not in any of the new programming languages.

Joso
Автор

here's another simple tip: write your code in a way that a human can understand it. on top of splitting things off for re-use, use proper naming for variables, functions and classes. this way you don't have to traverse the code to see what this dothing(int something) does and why, it's also a lot clearer for others if you ask them for help and show them your code.

gluckes
Автор

I'm going through the unity beginner scripting for like the 3rd time, and I was wounding. what am I meant to remember, I'm trying to understand literally anything and I don't know how to practice, and I'm worried about forgetting things that i might need to know later and I'm worried that if I can understand what to do, whenever I watch a tutorial, that I will be afraid that I can put my own spin on things or really understand what people are teaching me. so, what do I do?

staticplays
Автор

I start learning Unity and C# one month ago, and the best way i took to learn, are the gameJams.

Jiovi
Автор

When looking for bugs, more often than not, if the game was stable before you added a new feature, and now it’s buggy, the bug is in some way related to the feature. This would seem obvious, but…

pirateskeleton
Автор

i have given up on learning engined other from scratch since unity dint work for me and it wont let me instal unreal

amanammer
Автор

Great video!






















Sorry bro I had to bring it up. Please use serialized fields. Its sorta bugging me. Sorry!

omle
Автор

Already a developer so I knew most of that. I use JavaScript and getting into Godot's GDScript though. Code is different but fundamental do not change.

Jrej_dev
Автор

How to identify which code we should use to do what we want in unity

leenadhimte
Автор

My only problem is finding an actual good video to learn Unity

MasterProgrammer
Автор

Hi ButWhyLevin, I think the issues with me isn't programming, been programming with JavaScript and Kotlin for Android for almost 2years now. Made a couple of crappy little projects and now working creating an Android app. Most people aim at creating a ToDo app. But I figured why not try and make a game on Android?
As a hobby I would really like to create a 2D action fighting game. But the biggest challenge for me isn't coding the hard part is I can't draw! I figured maybe I could create pixel game character sprites? Or does Unity come with free available characters?
Lastly, for Android should I go with Unity or Unreal? Or maybe Godot? Which would you recommend for a simple 2D indie action fighting game?

DevlogBill
Автор

I would say that when you learn anything with code you should probably stop thinking about the application at first and focus on the idea of what you need, then focus on the application

MusselPump
Автор

Why when I update my unity it says error on my game codes

videogamestutorial