Software Architecture in Unity

  Рет қаралды 121,067

Jason Storey

Jason Storey

Күн бұрын

Пікірлер: 325
@Unity3dCollege
@Unity3dCollege 2 жыл бұрын
Awesome video
@SojoTaku
@SojoTaku 2 жыл бұрын
Sir, why aren't you verified?
@Hazzel31337
@Hazzel31337 2 жыл бұрын
i am so glad you made him make a channel, such a good video
@accountdua9375
@accountdua9375 2 жыл бұрын
Love you man...
@Ahatcho21
@Ahatcho21 Жыл бұрын
I Hope you learnt something.
@abdullah4653
@abdullah4653 9 ай бұрын
another amazing master is here@@Ahatcho21
@Tarodev
@Tarodev 2 жыл бұрын
Beautiful scene, interesting code visuals, funny memes and _solid_ information. Well done Jason, it's about time you released a damn video!
@Betruet
@Betruet 2 жыл бұрын
Not to mention a powerful cameo
@kingbling7571
@kingbling7571 2 жыл бұрын
Solid I see whtchy did there
@waltermunozguaman7591
@waltermunozguaman7591 2 жыл бұрын
I have the same opinion, awesome video!
@iHeartGameDev
@iHeartGameDev 2 жыл бұрын
As always, you introduce me to new concepts that I wish I knew more about! Awesome work and explanation, Jason! Keep the vids coming ✨
@0ptixs
@0ptixs 2 жыл бұрын
Just started their video and wanted to comment on the "don't focus on the lines of code, focus on the decision making behind it" absolutely love it, that is what I've been missing from all these KZbin tutorials, I could care less about what actual code I should enter, I can figure that out with documentation, but the actual logic and decision making behind developing is what I need the most help with. Think I'm going to enjoy a lot of your videos
@toastyshrimp1882
@toastyshrimp1882 Жыл бұрын
I've watched this video 3 different times, each time coming back to this more senior and able to understand more. I remember somehow watching this and feeling overwhelmed at how "complicated" this was, and I feel good knowing how much I've grown as a developer that this video seems basically like common sense now.
@BigRookDigital
@BigRookDigital 2 жыл бұрын
Okay, we get it... you're good at what we need to get better at. More videos, thanks!
@turkeyjerkey
@turkeyjerkey 2 жыл бұрын
I love that you're publishing intermediate content in the context of Unity. There is very little such content available, and most YTers seem to avoid it (doesn't get the views or likes they want).
@handleneeds3charactersormore
@handleneeds3charactersormore Жыл бұрын
insert *shallow, overly optimistic, obnoxiously narrated video on simple functionality designed to get the views of noob users and send them in a downward spiral of pain the more unity they learn* video here
@Rev3rence
@Rev3rence 9 ай бұрын
The thing is, these concepts are fairly simple and basic when you come to game development from software development. The issue is people assume the 2 can be mutually exclusive. In reality, you can't and shouldn't attempt to make a game without having proper engineering skills OR good engineers to support you. It gets worse, because working with an engine is inherently limitting. You are bound by the rules and whims of the engine and your software architecture is limitted due to that. It requires even more practical experience and theoretical knowledge to find the best practices in the specific context you are thrown into.
@Alexander_Grant
@Alexander_Grant 8 ай бұрын
@@Rev3rence I recently found a community that has a bunch of hobbyists making games and put myself out there to join some games in progress, and the projects I've looked at that are already partly through are full of code that reads like tutorial code. Some of them are big enough that I have no idea how the project even starts up. I had to tell a couple of teams that their project wasn't right for me because unpacking that code or trying to add features to it was brutal. It is crazy how much actually learning computer science changes the way you think about this kind of stuff.
@dann5295
@dann5295 2 жыл бұрын
Memes and edits are kinda distracting, to be honest. But your videos are always very informative! ty
@Bardent
@Bardent 2 жыл бұрын
Don't focus on the lines of code, focus on the decision making behind it. Love it!
@dawidblum8461
@dawidblum8461 2 жыл бұрын
I love the presentation, easy to understand examples, great narration and that every video provides a goal to achieve on your own that improves your overall skillset and knowledge. Can't wait for more videos! Keep up the great work Jason!
@strawhenge5007
@strawhenge5007 2 жыл бұрын
Good video. You aren't done when your code works, you are done when your code is right.
@okanerkan1873
@okanerkan1873 2 жыл бұрын
I know it takes a lot of effort but please keep making more videos, it's hard to find mid or above level stuff with good explanation. Thanks.
@beatenbykarma
@beatenbykarma 25 күн бұрын
Excellent video, love the way you demonstrated how change happens on projects
@Tvtig
@Tvtig 2 жыл бұрын
This might be the greatest software design and architecture resource I've come across in my 10 years of software development. I wish every new developer knew about it and studied what you are saying in detail.
@CallousCoder
@CallousCoder 2 жыл бұрын
Oh man, I’ve been teaching this for ages! And it seems that the younger the developers become the less they know and understand the use of software architecture. Your examples here were well chosen; simple quick and understandable. I think I will use the logging example from now on too. It’s easy to relate too. There’s a saying: “any problem in CS can be somber by an extra layer of abstraction”. And that’s true, but it’s walking a fine line with over abstraction and under abstraction. I try to teach developers, to initially don’t worry too much with abstraction unless it’s obvious (like logging, configuration and M/V/C etc). But as soon as you see you start to duplicate, take the time then and there to refactor. Because now it’s still easy and has little impact. But it just doesn’t sink in to the minds of the 25/35 year olds in most cases. They haven’t developed on low level languages (assembly and C) where this sort of duplication makes it impossible to maintain.
@0ptixs
@0ptixs 2 жыл бұрын
Man I just started trying to make games/learn to code (I know it's a trope at this point) but wow I have a long ways to go to understand all of what you wrote, excited for the journey though
@dinkle9664
@dinkle9664 2 жыл бұрын
I think that programming used to be a passion and is now just another career path. Some people want to just "get the job done."
@CallousCoder
@CallousCoder 2 жыл бұрын
@@dinkle9664 I think you may have a good point here. All those channels that “help” people land their 6 figure salary. So it’s probably more about the salary and the job than actually being an engineer and loving the job. I think you may be right!
@DoomCatcher
@DoomCatcher 2 жыл бұрын
Really useful video I just wish it was longer with even more examples, please make more videos expanding on this topic.
@kevonboxill9455
@kevonboxill9455 7 ай бұрын
cant remember commenting but watch this video 3 times.. these last two were just because you did it so well...kudos to you my bro!
@acryinshame
@acryinshame Жыл бұрын
thank you, i have struggled understanding the 'why' behind it and you described it easily in 7 mins.
@pixeldevlog
@pixeldevlog 2 жыл бұрын
This is one of the most useful videos on the internet. Following exactly this solves soo many problems.
@joshreylearning8253
@joshreylearning8253 Жыл бұрын
I really appreciate this video, I had read over the solid principles a few months ago and mostly didn't understand them, but this video made them much more clear to me. Thank you!
@crazyfox55
@crazyfox55 2 жыл бұрын
This is the best tutorial on this subject. The distinct separation of the architectural changes from the feature changes was very insightful.
@kayumiy
@kayumiy 7 ай бұрын
It is absolutely phenomenal explanation of SOLID and Software Architecture. You did well. Thank you.
@Nihilp
@Nihilp Жыл бұрын
precious stuff here! mindchanging ! i'm rewriting all my code with this philosophy and i'm happy with it! thx!!!!
@otrocanalmas8096
@otrocanalmas8096 2 жыл бұрын
Nice . What do you thing about a static method with a #if UNITY_EDITOR define inside a method ?
@jeffwang2216
@jeffwang2216 Жыл бұрын
這麽棒的影片我居然才看到……非常有用的思路。Thank you for sharing
@wvaviator3408
@wvaviator3408 2 жыл бұрын
Excellent advice and example
@kevinrobertandrews
@kevinrobertandrews 2 жыл бұрын
I appreciate how thoughtfully worded you made this tutorial. Thanks for sharing!
@saltyspacenerd5581
@saltyspacenerd5581 2 жыл бұрын
Thanks again Jason, You are a great teacher. I am looking forward to more videos as your channel grows. Ill be sure to keep watching them. So valuable!
@alaslipknot
@alaslipknot 2 жыл бұрын
Amazing content! Jason and Tarodev are by far my favorite game dev channels now, short, accurate, and straight to the point! Jason can you cover dependency injection in the future please ?
@Passenger-vf8pp
@Passenger-vf8pp Жыл бұрын
Thanks for the video! I have been working quite a while on improving the workflow of code development and teamwork. This video definitely helps!
@Gastrostomi
@Gastrostomi Жыл бұрын
Was actually looking for some interesting videos about Addressables, but the title was teasing be about other interesting topics I have thought about before. So I think I will stick around for a while.
@hotroddd1
@hotroddd1 2 жыл бұрын
This is a great simple video on how to take the "white paper" ideas and turn them into real world examples. Thank you.
@GlennThomasJr
@GlennThomasJr Жыл бұрын
Your page is amazing! I scour for these higher level thinking concepts!
@markcooke4866
@markcooke4866 2 жыл бұрын
I love the simplicity of your example and how you explain not just what to do, but why it's a good practice. Looking at the rest of the code, I could also see pulling out the code to compute the HitInfo from the mouse position as a separate concern.
@nasrodev2087
@nasrodev2087 Жыл бұрын
i had a big brain Unlocking process while watching this video Really made me rethink how to handle things entirely not just Debuggin thankss a lot
@hernandonj
@hernandonj 2 жыл бұрын
Clarification absolutely needed. Thank you so much.
@goehlergamedev
@goehlergamedev 2 жыл бұрын
Hey Jason. I just want to really thank you for pointing me towards Uncle Bob. I've now been listening to him for 8 hours - and the stuff he preaches is SO important and valuable. This will change my way of coding for ever! Thank you. :)
@jirushi3028
@jirushi3028 2 жыл бұрын
It's getting better and better
@guardianoftheledge4966
@guardianoftheledge4966 2 жыл бұрын
With so many moving parts in a project, it is so easy to miss the forest for the trees. This is a very nice video. I look forward to seeing more from you in the future!
@willnmari5998
@willnmari5998 2 жыл бұрын
wow that was eye opening! especially the Log() method - thanks!
@gmunay420
@gmunay420 2 жыл бұрын
i want to say something nice but im terrible with words, I really like this.
@henryh7140
@henryh7140 2 жыл бұрын
This practical example really helped! Great video, thank you :)
@OldM8
@OldM8 2 жыл бұрын
I am a completed noob with C# and playing with Unity and this made awesome perfect sense ! I think I need to read a few more books on fundamental principles like this video explained :) thank you my dude.
@trickstapriestxm
@trickstapriestxm 2 жыл бұрын
Been wanting software architecture/organization in a unity context for years!
@teknofis2604
@teknofis2604 2 жыл бұрын
Your videos are just .. Wow! Pls keep'em coming
@RobLang
@RobLang 2 жыл бұрын
For me, architecture is deciding boundaries and what should be coupled and what should not. In turn, change is confined to one area of the system as it's interactions are through defined boundaries. Also, I felt your example of Open/Close wasn't an extension, it was a change. Extension would be where you have 3 different types of logger (eg console, file or web service) and you want to add a 4 logger (eg Windows Event). Open/Close is where you can add a new logger without having to change the existing ones, usually through interface abstraction. Completely agree about SOLID still being valid. Like DRY, YAGNI and the gang of four, they're all just tools. Much of the SOLID hate comes from untyped languages, where those tools are less appropriate. Really enjoyed your Fowler refactor video.
@philberex
@philberex Жыл бұрын
Damn glad i found this video in the KZbin archives.
@jtmcfarland3512
@jtmcfarland3512 9 ай бұрын
Great video, but I with it was longer. There are tons of resources for how to do single things in Unity with C#, but I’m struggling to understand how and when to implement them. Nobody seems to ever start the video explaining WHY you would do a certain thing. This discussion on architecture was a great start. I’d love to see the architecture of a developed game. What’s in their hierarchy? How are their files organized? How often and when are different principals used (state machines, statics and singletons, event systems, and other patterns). Great work. Keep it up.
@VitegO4
@VitegO4 2 жыл бұрын
Oh, this is a brilliant level of content! And my words are not just for being loud. As experienced in web, i've been looking for videos that would help me to switch into gamedev. Well, I found that in terms of basic principles and architecture the most of videos are weak. But, in opposite, this video is completely coherence with fundamentals that I rely on. At first - no afraid of "additional code and abstractions". At second, it says about code for game not talking about game itself, but exactly about architecture. So, I'm excited to keep watching the channel!
@АндрейКоваленко-г4х
@АндрейКоваленко-г4х Жыл бұрын
Okay, we get it... you're good at what we need to get better at.
@Pdude2k9
@Pdude2k9 2 жыл бұрын
Great video, it's more rare to find videos about this topic than just another language feature. Keep up the good work!
@nanaschi
@nanaschi Жыл бұрын
Agree with everything except Logger being monobehavior. Good stuff 👍
@KDSBestGameDev
@KDSBestGameDev 2 жыл бұрын
You got a great point with change. The solid principles for example also make it possible to unit test your code and also make bug searching less painful. If you have certain classes with specific responsibilities than searching a bug is way easier. More important if there is a slight risk that you created a bug and another team member has to fix it (vacation whatever). With e.g. single responsibility in place, the new team member should be able to narrow the possible buggy classes down significantly. TL;DR Great Video Ty!
@maple7rees-352
@maple7rees-352 Жыл бұрын
Subbed. Thank you for being so insightful and straightforward.
@AlexBlackfrost
@AlexBlackfrost 2 жыл бұрын
Great video, using console logs as an example was a great idea, it's something even beginners can understand. Looking forward to seeing "Unity is too slow part 2" 👀! Also, loved the colabs.
@redenvalerio601
@redenvalerio601 2 жыл бұрын
Please continue this kind of contents!! I love it! Thank you!
@astrosoap
@astrosoap Жыл бұрын
Great video Jason, just looking at your uploads and it seems you've stopped. Would love to see more of your stuff
@aktchungrabanio6467
@aktchungrabanio6467 Жыл бұрын
Absolutely beautiful solutions Jason. Thank you for these tips. You are a gem
@PitiITNet
@PitiITNet 2 жыл бұрын
Fantastic video! I believe people talk about death of SOLID or many other architecture/good code related subjects because we are facing massive decrease in quality of developers on the market. Programming is very lucrative job and unfortunately that means it attracts a lot of people that do not want to become better, don't want to learn good coding practices, design patterns, principles and so on. I love the video you created because it proves, in simple, well understandable matter, that those things are important and we cannot just do not care about them. I mean we can... but it all comes at a price.
@kanz0bgz
@kanz0bgz 2 жыл бұрын
Great stuff, really loving these videos. Looking forward to the next one.
@damiangonzalez_esp
@damiangonzalez_esp 8 ай бұрын
Hey! Please correct me if I'm wrong (I'm always ready to improve my coding), but instead of emitting a [possibly worthless] ScreenPointToRay, and Raycast every frame, and THEN check for the mouse button, wouldn't be better to first check for the button every frame and THEN emit the ScreenPointToRay and Raycast? I mean, it seems cheaper that way.
@biobear01
@biobear01 2 жыл бұрын
Please do more of these! Great info and made me realize I need a lot more architecture training!
@biobear01
@biobear01 2 жыл бұрын
Going more in depth on solid is probably a great start for more video topics. Each principle could surely use its own explanation and unity example?
@marche4ever
@marche4ever 2 жыл бұрын
i'm intrigued by the way you structure your scene, it would be interesting to see a video on how you set it up and the reasons behind it.
@roydrinkwater
@roydrinkwater 2 жыл бұрын
I need more videos like this one. Very effective examples and to the point!
@wilmirosa7076
@wilmirosa7076 2 жыл бұрын
Your content is fantastic because is clear and concise. Glad to be your follower Jason,
@Whaddif_
@Whaddif_ Жыл бұрын
great video! very curious, what effect did you use to achieve the 3D-sound ? i took my headphones off because of how much it sounded realistic, and would love to learn how you did it!
@MohammadFaizanKhanJ
@MohammadFaizanKhanJ Жыл бұрын
This video pops in my recommendation and I watched it the second time completely. Good work Jason! SOLID death seems very funny to me. even the S of the SOLID has much impact on the overall of your coding architecture decsion.
@BallisticLife
@BallisticLife 2 жыл бұрын
This is a very well crafted video!! Perfect example, and the concepts are explained very clearly. Something this video highlights, without acknowledging it, is that the architecture of a project has to change and be redefined as the needs of the project change. Deciding which aspects of your code are changeable involves anticipating future design changes, which can be a tricky and sometimes harmful task. By its nature, writing code is the act of creating explicit structure that limits changes in some areas and allows it in others. As such, it's counterproductive to set out creating a program that will be changeable in every area. Of course this isnt to say you shouldn't anticipate future changes. Just that it's important to make sure you're doing so intentionally. There isn't a one size fits all "best way to start a unity coding project so that you wont have to do lots of refactoring in the future". Internalizing that took me a while when I started out.
@BallisticLife
@BallisticLife 2 жыл бұрын
To be clear, I don't expect this stuff to be discussed in this video. This is out of scope for the target audience and length of the video.
@SoaringSimulator
@SoaringSimulator Жыл бұрын
Thx 4 your time, bro. Awesome explanation. As Jason pointed out, do not look at the code. In particular, if you try to extend with a function that triggers Debug.Log, when there is a message in the console and double-click it, it will not take you to the message but to the function. So it is not helpful, and there isn't a way around that. We love your channel!
@agent-33
@agent-33 2 жыл бұрын
I'm glad search & replace text exist.
@_stephenhubbard
@_stephenhubbard Жыл бұрын
sheesh how am I just discovering this channel?! Dat quality
@chrisrabe
@chrisrabe 2 жыл бұрын
Great video. SOLID is definitely a great principle to follow when developing code (at least just the first two, the last three are more catered towards object oriented style languages with the use of interfaces and abstractions).
@Belliger1991
@Belliger1991 2 жыл бұрын
You forgot that functional programming basicly starts at the "open for extension, closed for modification" philosophie ^^ So basicly (if you ignore the three basic rules in the video) all you do is simple basic scripting but not realy programming (as in you think of the future change consequences) ;)
@chrisrabe
@chrisrabe 2 жыл бұрын
He only mentioned the first two principles in the video though?
@albertmontagutcasero2129
@albertmontagutcasero2129 2 жыл бұрын
Awesome Jason, thank you for this kind of videos. You are so unique. Also, to point something about Single Responsibility Principle, Robert Martin also says -A module should be responsible to one, and only one, actor-. So, if some behavior of your application is used by two different actors, you should keep it separate to avoid defects. Your example is perfect, I would love more examples using different point of views.
@MTweedC4
@MTweedC4 Жыл бұрын
The skype call was *genius!* Would love to see more people be brave and craft some unusual audio design! Thank you :)
@rashidfarhan6223
@rashidfarhan6223 2 жыл бұрын
Brooo all of my favorite unity content creators are here in the comments. This is some next level stuff here.
@mongrelgaming1473
@mongrelgaming1473 2 жыл бұрын
Thank you for the information you put out, being only a couple months into this new hobby your voice is one I listen to a great deal (as are a fair few of the other commentators here which I find interesting.) Also I think the new skills in video editing are noticable.
@frederickfreund1957
@frederickfreund1957 Жыл бұрын
Really good informative video. Thank you!
@cathychoi6959
@cathychoi6959 Жыл бұрын
Thanks for your honest review not like others trying make my life more diffuuucxxlt !
@TheKr0ckeR
@TheKr0ckeR Жыл бұрын
I feel like i found a legendary item that i want for years while watching this video.
@ryanlaseter7626
@ryanlaseter7626 2 жыл бұрын
1000% the first point. When trying to discuss architecture with someone and they ask 'why do I need to change it if it works' they're totally missing the point xD it's not about it working or not, it's about designing it in a way that's more scaleable, reads better to the human eye, shareable, etc.
@bjkgamedev
@bjkgamedev 10 ай бұрын
Nice video, actually touching upon important stuff. However architecture is more than just "change". I recommend watching "Where Does Bad Code Come From?". Instead of only "change" there are many more things that are important: - Write - architecture should help you write code faster - Argue - architecture should make it easier and reduce time programmers must argue about code - Read - architecture should make it easier to read code - Modify - architecture should make it easier to change things (this is the part mentioned in this video) - Execute - architecture should make code execution better (faster, easier, depends on context) - Debug - architecture should make it easier to debug bugs
@ElBARTO298
@ElBARTO298 2 жыл бұрын
dude . you are the best. i love the passion you put into you editing and the learning experience is just on another level.
@nickygdev
@nickygdev 2 жыл бұрын
Incredibly informative as always
@jordanfischer3693
@jordanfischer3693 2 жыл бұрын
Great video, love how you use simple understandable examples.
@modelworkzseo
@modelworkzseo 2 жыл бұрын
Jason, you are absolutely brilliant. PLEASE consider making long form refactoring videos like you used to at Infallible Code; your insights are so helpful.
@waltermunozguaman7591
@waltermunozguaman7591 2 жыл бұрын
Awesome video!, so much quality
@arixfurette7310
@arixfurette7310 2 жыл бұрын
I don't really understand code but I understood the video, very good video thanks!
@anton.m.korshunov
@anton.m.korshunov 2 жыл бұрын
SuperObjectiveLookInside(the)Development. Let me throw a bunch of flowers onto the starship board where you stand to deliver us such practical and entertaining content.
@fulongfromthegrave
@fulongfromthegrave 2 жыл бұрын
I felt like all that needed to be said! Looking forward to the next one :)
@omnicatalyst
@omnicatalyst 2 жыл бұрын
This was a fantastic explanation
@KjipGamer
@KjipGamer 2 жыл бұрын
Amazing video. One thing to note whilst doing this : You can *easily* go to far in this.
@sinanermis
@sinanermis 2 жыл бұрын
Great video, the point about while writing code keep change in mind is cool. But there is a problem with Unity's logger, when you double click your logs from Console window it only trace back to the actual "Debug.Log" call(which is in Logger class in this case). If you are using an external logger class, you have to find the line that you used your own debug class by yourself. I tried to write my own DebugEditorOnly class once, and disability to trace back was very frustrating.
@BatonyRobson
@BatonyRobson Жыл бұрын
Very important video and perfect example👍
@ragerungames
@ragerungames 2 жыл бұрын
Good to see video featuring Tarodev!!!
@GordonArber
@GordonArber 2 жыл бұрын
I love the editing in this one Jason! Well produced! Also awesome content!
@minhdungdo4541
@minhdungdo4541 2 жыл бұрын
Awesome video, Liked and subscribed! That teach me a lot, Regarding to get more familiar with Architecture in general and in Unity in specific. Do you have some suggestion what to read or where to learn? A video on that would be much appreciated.
@vasilevsanyok
@vasilevsanyok 2 жыл бұрын
Short and sweet :) waiting for more new videos! thanks
@asliniarayanadam
@asliniarayanadam 2 жыл бұрын
Great content man, your points made me better in such a short time.
@larryd9577
@larryd9577 Жыл бұрын
A proper logger can adjust its loglevel. So if you added a lot of debug logs, you can set it to a higher level (e.g. info) then it will not write debug logs. But info, warn or error logs
@keelanbowker-obrien2222
@keelanbowker-obrien2222 2 жыл бұрын
This was so helpful for me, thank you so much.
Why is unity so slow!
5:53
Jason Storey
Рет қаралды 71 М.
Каха и лужа  #непосредственнокаха
00:15
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 7 МЛН
A BETTER way to setup new unity projects!
15:44
Jason Storey
Рет қаралды 56 М.
The basics of game architecture
20:58
BiteMe Games
Рет қаралды 13 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 726 М.
Clean Code is SLOW But REQUIRED? | Prime Reacts
28:22
ThePrimeTime
Рет қаралды 321 М.
Why I Quit Netflix
7:11
ThePrimeagen
Рет қаралды 518 М.
Bob Nystrom - Is There More to Game Architecture than ECS?
23:06
Roguelike Celebration
Рет қаралды 207 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
11 Things You (Probably) Didn't Know You Could Do In Unity
13:49
Game Dev Guide
Рет қаралды 155 М.
Abstraction Can Make Your Code Worse
5:13
CodeAesthetic
Рет қаралды 666 М.
The 6 Design Patterns game devs need?
24:20
Jason Weimann (GameDev)
Рет қаралды 372 М.
Каха и лужа  #непосредственнокаха
00:15