How to Debug Errors in Unity | Beginners Must Learn This

preview_player
Показать описание
In this video, we'll learn how to debug and fix issues in Unity. This is one of the most important skill to have for beginners. You'll learn about the different types of errors you'll get in unity & how to diagnose and fix each one of them. You'll also learn how to the debugger in visual studio. It's a really powerful tool.

0:00 - Intro
0:41 - Runtime error - Null reference
5:41 - Runtime error - Argument out of range
11:04 - Compile time error
12:42 - Unexpected behavior but no error

If you like this video, consider subscribing to the channel and leave a like on the video to help this channel grow.
Рекомендации по теме
Комментарии
Автор

The debugger is one of the most important tool but so many (Unity) beginner skip it and then they don't know how to fix even simple errors. I will send people here to watch the video so they can finally learn to debug :D

rpfake
Автор

:D It's very useful, your tutorial is awesome!

vermalreik
Автор

I think I'm too early lol
But thank you for this tutorial :)

Nvermnd
Автор

I also have Unity setup so the background color gets dark if i'm running it. It helps me to not make changes when running. Saves me time from having to do things over again that I want to be permanent.

wardenteegs
Автор

Thank you very much for your videos. They have helped me a lot and i´m getting one of my childhood dreams. Thanks.

Unfortunately i´m a beginner to visual studio and Unity. Do you know a youtuber who have tutorials for beginners? Thanks.

About this video, i have the second error and my code is:


void HandleMoveSelection()
{
if
{
if (currentMove < - 1)
++currentMove;
}
else if
{
if (currentMove > 0)
--currentMove;
}
else if
{
if(currentMove < - 1)
currentMove += 2;
}
else if
{
if (currentMove > 1)
currentMove -= 2;
}

dialogBox.UpdateMoveSelection(currentMove,
}

The particular thing is that my characters have 8 moves or less not 4 or less, like this:

Move 1 Move 2 Move 3 Move 4
Move 5 Move 5 Move 7 Move 8

What do i have to do to fix it?

Thanks very much for all.

LDVR-iiqt
Автор

Finding the errors is not difficult, the difficult part is knowing what to put in their place...

jochewi