You Need To Know These Unity Tips!

  Рет қаралды 26,223

ButWhyLevin

ButWhyLevin

Жыл бұрын

These Unity tips and tricks should save you hours of time and should also speed up game development! I've found these very helpful myself in the past few months, so I wanted to share.
A lot of credit goes to Tarodev, whose videos have quickly become some of my favorite on KZbin for their interesting information and compact design. Here are links to the two videos of his that I mentioned in this video:
Enter Play Mode Faster in Unity! Speed Up Development Time [Unity Tutorial]
• Enter Play Mode Faster...
Animate Like A Programmer
• Animate like a Programmer
Also here is GameDevGuide's video, I pretty much have the same praise for him. Well edited, informative videos that don't waste your time.
Speed Up Compile Times in Unity with Assembly Definitions
• Speed Up Compile Times...
Thanks for watching
Couch Combat on Steam:
store.steampowered.com/app/16...
My Discord Server: / discord
My Free Games: butwhylevin.itch.io
My Twitter: / whylevin

Пікірлер: 50
@MichaelGGarry
@MichaelGGarry Жыл бұрын
I've worked in games from AAA to just myself. "Kit bashing" is my default for any game I am working on by myself. Its just buying assets and using them - isn't that what they are for?
@NeonValleys
@NeonValleys 9 ай бұрын
What they are is literally in the name... They are an asset. It's a benefit or added value. But it isn't a complete replacement for a game. If youre game is literally nothing but packaged assets I won't even call it a game. You can if u want tho
@gamecells
@gamecells Жыл бұрын
1:07 I recommend keeping the Reload Scene option on since it doesn't take much time unless your scene is extremely large. Disabling domain reload does speed up entering play mode significantly, but the biggest problem is that Unity no longer resets static fields for you. An easy way to do so yourself is to create a function in your scripts that resets this value and add the [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] attribute to make sure this function is automatically called when you reload.
@johnleorid
@johnleorid Жыл бұрын
If you have problems with static fields after not reloading the domain, you will also have problems with the same static fields when actually building the game and switching back and forth between MainMenu and Levels. Thanks to this attribute, I just used some reflection (calling all methods with the attribute, just like unity, but at runtime, when switching to the MainMenu) and got rid of all those problems for this and all future projects without having to think about it. With the Reflection Stuff it's now -> if it works in the editor, it also works in the build. So I highly suggest turning domain reload OFF, so you don't run into this issues 8 months into a production when trying to make your first playtest build.
@Yggdr4zyl
@Yggdr4zyl Жыл бұрын
@@johnleorid and what's your magic reflection method...? Initialize On Load attribute does not work when switching between scenes, it is only called on first load (unfortunately). I haven't found any funcion similar to InitializeOnLoad that would be called every scene load.
@durrium
@durrium Жыл бұрын
OH MY GOD, the faster loading of the scene is GOOOOOOOOOLD, i had like 20 seconds startup time! THANKS!!
@LucasDenhof
@LucasDenhof Жыл бұрын
On the topic of script compilation, there is an option to disable compilation while in play mode! I find this super nice as I'll often work on a script while in play mode and that way I don't have to leave play mode, wait until it's done, save the script, wait till that compiles, and then wait as I reenter play mode to test something properly. I find disabling this much more convenient, and there's also no chance of weird errors that only occured cause you recompiled while playing.
@dynogamergurl
@dynogamergurl 2 ай бұрын
glad to see a tarodev mention. I absolutely cannot follow code monkey tutorials their too long, often broken and have you watch like 5 other videos beforehand. we need more tarodevs
@Am3ricium
@Am3ricium Жыл бұрын
On the topic of recompiling scripts, the asset store has free asset called "background recompiler", or something similar. It recompiles code right away after you saved it in IDE of your choice, without the need to tab back to Unity. Personally it saves me decent amount of time when I hop between multiple scripts in VS Code, for example, and when I'm done with them and go back in engine, they're already recompiled. Plus having assembly defenitions speeds that up even more.
@Asylum3D
@Asylum3D 9 ай бұрын
I started using Plastic and loved it. I have it running on one of my network servers. I love the direct integration w/Unity and the fact that is was made for large file sizes.
@TheAsbj0rn
@TheAsbj0rn Жыл бұрын
It wasn't until 8 minutes in I realised this is a small channel. Very good video, keep it up and you'll go far ♥
@ShaugrithShaugrith
@ShaugrithShaugrith Жыл бұрын
nice vid, btw I also loved the devlog series of couch combat it was my favorite devlog series ever fr bro love the stuff man, keep it up
@49wares
@49wares Жыл бұрын
Wow great Video👍, i did not knew about the presets, xD that sounds super handy. I will definitly mention that in my next tips video 😃
@Mistereee
@Mistereee Жыл бұрын
great video!
@dreamisover9813
@dreamisover9813 Жыл бұрын
Great video! For kitbashing and using visual assets in general, some devs slightly modify the kits or apply different shaders to suit their game's style better. It might cost a bit, but if you either don't have the skill or don't want to invest that much time to learn it or to create it yourself, I'd say buying good quality assets and saving yourself the time is a great tradeoff.
@Jiovi
@Jiovi Жыл бұрын
Really helpful :)
@hejhejhej952
@hejhejhej952 Жыл бұрын
Thanks!
@jarrettonions3392
@jarrettonions3392 8 ай бұрын
Last tip is the winner
@ZiederZiet
@ZiederZiet Жыл бұрын
Nice
@cube_code
@cube_code Жыл бұрын
I use some of these tips :D
@thygrrr
@thygrrr Жыл бұрын
For the animation from any state: That's what the "Any State" node is for. Code can still be easier. About legacy animation system: it was deprecated but unity decided to keep it because it was much more light weight. I believe it is no longer deprecated. Regarding kitbashing and cost: your time is the most expensive resource. The money I spend on assets doesn't even get close to that gained value.
@Bulkyrowen
@Bulkyrowen 11 ай бұрын
I don't know if this is right, but recently I have had much more success in unity due to chat gpt, and its ability to code WAY better than me, it made unity much easier to use because of it.
@halivudestevez2
@halivudestevez2 11 ай бұрын
what's you opinion about "Cloud build" service? (running in player/editor is ok for me, but build time takes a lot of time and resources)
@ShiNyChiDoRi
@ShiNyChiDoRi Жыл бұрын
can you make a video about What should I know to enter a game development company the esentials
@adamhelberg9228
@adamhelberg9228 Жыл бұрын
2:00 There is, its actuly simple, you slit your scripts into different assemblies and then if you change something in one script it does not recompile the other unrelated scripts/assemblies
@adamhelberg9228
@adamhelberg9228 Жыл бұрын
Never mind i saw you mentioned this after, lol
@cubbucca
@cubbucca Жыл бұрын
Im so glad i have 4mil GB of DDR19 ram. My loading times are only 5mins
@UncleRay420
@UncleRay420 Жыл бұрын
get off youtube is seriously the best tip though. I spend too much time on youtube. So much that the guilt eats me.
@SpellMenderDev
@SpellMenderDev 10 ай бұрын
Should rename the video "Why you should use Godot instead"
@RedBloxStudios
@RedBloxStudios Жыл бұрын
Just make a bunch of simple scripts and put them in every new project you make. You have no Idea how far OnSpawn, Delay, and Despawn scripts can get you when starting out
@TheBogeyman873
@TheBogeyman873 Жыл бұрын
Me who used usb’s to back up my game
@pigratstudios
@pigratstudios Жыл бұрын
But why do we need these tips Levin?
@terxonemusic
@terxonemusic Жыл бұрын
please i beg/bag (idk) you add new weapon/map and multiplayer to couch combat :'(
@aynsjc
@aynsjc 2 ай бұрын
2:42 Animati-oo-n ?
@sulaimation6253
@sulaimation6253 Жыл бұрын
But why Levin?
@cptray-steam
@cptray-steam Жыл бұрын
Me who has ADD and gets distracted easily. :(
@__Rizzler__
@__Rizzler__ 9 ай бұрын
lets see what bluds tips are
@Hefnerrr
@Hefnerrr Жыл бұрын
I just straight up don’t know how to code or where to start.
@NeonValleys
@NeonValleys 9 ай бұрын
Did you ever try learning? It's very easy nowadays
@urod7149
@urod7149 7 ай бұрын
4:57 7:47 you what
@soundzythedev
@soundzythedev Жыл бұрын
Quick tip: YOU CAN USE AN OR FUNCTION in c#. All you have to do is || it’s the button under backspace. Example: if(bool == true || otherbool == true) { // Do something }
@zstardustttt
@zstardustttt Жыл бұрын
😐
@Hietakissa
@Hietakissa Жыл бұрын
and with the + operator you can actually add values together, crazy right
@soundzythedev
@soundzythedev Жыл бұрын
@@Hietakissa to be fair I never heard this in any tutorial or tips and tricks video and I learned c# through those tutorials so that’s why I said this
@Ghost13-
@Ghost13- Жыл бұрын
@@soundzythedev what? Tutorials should cover this in the first like 2-3 videos. Its insane that they didn't XD As for tips videos, surely they wouldn't, since its one of the core basics
@overlord--
@overlord-- Жыл бұрын
There were more useful tips for the first issue you could've covered..
@samanthanavarro2095
@samanthanavarro2095 Жыл бұрын
Ee creator of the game stole my account. Took all my earnings
@bruhmomento6908
@bruhmomento6908 Жыл бұрын
10 minutes of my life wasted
@NeonValleys
@NeonValleys 9 ай бұрын
Same lol. "Idk how to use git and I've been convinced asset flipping is super cool" lolololol
I Wish I'd Heard These Tips From The BIGGEST Game Dev YouTubers...
11:38
50 Days Of Roguelike Game Dev! | Indie Game Devlog
13:03
ButWhyLevin
Рет қаралды 7 М.
UFC 302 : Махачев VS Порье
02:54
Setanta Sports UFC
Рет қаралды 1,3 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
10 Things You NEED to Be Doing in Unity
11:40
Tarodev
Рет қаралды 125 М.
11 Things You (Probably) Didn't Know You Could Do In Unity
13:49
Game Dev Guide
Рет қаралды 147 М.
I Made A Office Simulator in 24 Hours
10:38
Deep Space Interactive
Рет қаралды 4,1 М.
I Wish I Had Known This Before I Started Unity Game Development...
11:11
Watch This Before Working on a Big Game in Unity
18:44
John Leorid
Рет қаралды 290 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 677 М.
10 Unity Tips You (Probably) Didn't Know About
6:47
Sasquatch B Studios
Рет қаралды 33 М.
I Made a Game Using ChatGPT
9:51
Rye
Рет қаралды 2,6 МЛН
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 154 М.
Beginner GameDev Mistakes - Ep 1
6:40
Shaun Spalding
Рет қаралды 160 М.
你们家里有这么调皮可爱的孩子吗? #袋鼠妈妈
0:41
袋鼠妈妈育儿记
Рет қаралды 12 МЛН
Прояви гостеприимство🤣#фильм #сериал #кино
1:00
#чайбудешь
0:14
ЧУМАЧЕЧИЕ ПАРОДИИ
Рет қаралды 2,9 МЛН
I Know How To Get My Favorite Ice Cream From My Mom🤭😎
0:17
Giggle Jiggle
Рет қаралды 16 МЛН
Хотел парализовать друга😅 #freekino
0:20
Изменила с Лучшим ДРУГОМ😱☠️
0:45
ИССЛЕДОВАТЕЛЬ
Рет қаралды 2,3 МЛН