Tip For Less Unity Errors and Better Code

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

How I saved my game from Disaster (Devlog)

Subscribe for Unity and game dev tutorials

Make and sell car games easy in Unity

Advice for Game Dev Beginners:

#gamedev #tips #unity
Рекомендации по теме
Комментарии
Автор

I hope you dont stop doing this man, regardless of your potential financial future through these tutorials and youtube in general, you should know your helping out a lot of people. not just in terms of knowledge, but also in terms of motivation

JC-jzrx
Автор

You're like the Keanu Reaves of game dev. Fr though tanks for this tip. Gonna save me so much time!

jessiea.
Автор

you're an absolute blessing dude. i was set on using a visual fsm like playmaker until i saw your player controller video and realied how much fun scripting can be. not sure i could've done it without your human, down to earth approach to code tutorials. ur the best in the biz bud

wyattsailors
Автор

That is such a simple yet powerful line of code! As a complete beginner in C# this is great to learn.

colincromwell
Автор

I don't usually comment, but the job you are doing is extremly great and you sir get my subscription.

Just don't stop ! Good luck.

KissMachine
Автор

Thanks man you are the best source ofadvice for beginners like me, keep making videos

bigslime
Автор

Awesome tip, thanks! I've had several cases where collisions don't work for me since I didn't attach a rigidbody, but no more!

TonsOfHunStudios
Автор

RequireComponent also has constructors that can take multiple arguments, so instead of having 3 requirecomponent attributes, you could just do:
[RequireComponent(typeof(RigidBody2D), typeof(BoxCollider2D), typeof(SpriteRenderer))]

ITR
Автор

4:22 the actual part that would make sence of why you would use it to prevent errors.

RiorXD
Автор

Cheers, That is very cool 👍 I’m now going to go through all my scripts and see where I can use this. Will be worth the effort in long run. BTW will be adding blood and mead to my wish list on steam looks great.

tonyhaughton
Автор

I appreciate your videos man. Your voice and look is like that of a Sage. So I always enjoy your videos.

theplaymakerno
Автор

This is one of THE most useful things to know when doing Unity scripting. When I first started using this method, I didn't like it but its almost essential now. I'd recommend everyone get in the mindset unless you really don't go this route.

kristophsams
Автор

Fantastic info! I’m sure it’s negligible but how much does effect performance, if at all? For example, if I set up my 2D player character with a series of these, what is the general performance impact?

ChristopherMcDow
Автор

Hi John, is it possible that you have some ancestors from Czech Republic? Stejskal is a very common czech surname :)

Shadefrank
Автор

Very nice tips that I'm sure will come in handy. Now I just need to figure out a way to learn unity, so far it haven't been going very good.

TechBoxNorth
Автор

I see one thing is better to avoid you have make the input script to recaroment the player script and the player script to recaroment the input that mens if want to remove one of the or even both the is no way to do that if you don't chenge the code

watercat
Автор

How to reduce unity errors:
Step 1: press clear
2: hide error showing
3. Problem solved 😅

_GhostMiner
Автор

Hi, I'm ADENIYI BASIT.
The app is a 2D graphics name is word find plus
I need help with app reskining please I bought a zip file from evanto and have been having problem reskining it please anyone who can render help to me

Mgw_wagwan
Автор

I am watching all your videos hoping to find 1 useless video ... I failed.

coregamedev