The Unreal Engine Game Framework: From int main() to BeginPlay

  Рет қаралды 190,671

Alex Forsythe

Alex Forsythe

Күн бұрын

What happens when you start up your Unreal Engine game? This video is a guided tour of the Engine's initialization process: along the way, we'll glimpse the high-level structure of the Engine (modules, game instances, local players, and viewports) and we'll see how all the different parts of the Game Framework (game modes, game states, player controllers, and the like) fit together.
00:00 - Introduction: The game loop
01:13 - Unreal's scary initialization code
02:35 - GuardedMain and FEngineLoop
03:09 - PreInit: loading engine, project, and plugin modules (IModuleInterface, UObject)
05:17 - Init: Creating and starting the Engine (UEngine / UGameEngine)
07:34 - Engine initialization (UGameInstance, UGameViewportClient, ULocalPlayer)
09:24 - LoadMap: Reloading the world from disk (UWorld, ULevel)
11:18 - LoadMap: Bringing the world up for play (AGameModeBase, AGameStateBase, AGameSession)
14:10 - LoadMap: Logging the player into the game (APlayerController, APlayerState, UPlayer / UNetConnection)
15:54 - LoadMap: Restarting the player (APawn, APlayerStart, AController / AAIController)
18:11 - LoadMap: Routing the BeginPlay event (AWorldSettings)
18:43 - Animated callstack summary
21:55 - Base game mode classes (AGameMode, AGameState)
22:36 - Characters and Pawns (ACharacter, UCharacterMovementComponent)
24:02 - Where to specify custom subclasses
25:32 - Delegates and subsystems (UGameInstanceSubsystem, UWorldSubsystem)
26:42 - Conclusion
Patreon: / alexforsythe
Twitter: / alexforsythe
#UnrealEngine #UE4 #programming

Пікірлер: 327
@CinematographyDatabase
@CinematographyDatabase 3 жыл бұрын
This video must be protected at all costs!
@mjmartinez7
@mjmartinez7 2 жыл бұрын
Yup!
@Dazza_Doo
@Dazza_Doo 2 жыл бұрын
Bro... I've been following your project for a while now (years) and every time I find a nugget of Gold, you have always been here first. I would pay you money to get your learning links!
@beanboy504
@beanboy504 3 жыл бұрын
I really think Epic needs to promote/support/sponsor/hire you to do videos for them. Like Unity did with Brakeys. These are the most in-depth and clearest videos I have seen on UE4 ever. UE4 lacks a lot of good in depth tutorials and videos. Glad you are filling that gap!
@randomexplosion6527
@randomexplosion6527 Жыл бұрын
y e s
@wafi5576
@wafi5576 Жыл бұрын
yeah . we need more educational stuff like this
@NicoleSummer8
@NicoleSummer8 Жыл бұрын
Agree 😂
@divyanshkhare
@divyanshkhare Жыл бұрын
He used to be an engineer @ Epic Games
@jak3legacy
@jak3legacy Жыл бұрын
2 years later this is still true! Would love for him to do a UE5 series sponsored by Epic
@kumituubi
@kumituubi 2 ай бұрын
This is the best Unreal programming related video ever made, and is still valid in the era of UE5.
@jeggie
@jeggie 7 ай бұрын
This is the masterpiece that all other Unreal videos should be judged against. Flawless. Thank you for creating this!
@Rubberglass
@Rubberglass 3 жыл бұрын
My GOODNESS! Been using UE4 for 5 years and this might be the best video I've seen on the core of how the engine works. A+
@kevindt100
@kevindt100 2 жыл бұрын
I'm just watching this for fun at this point. The attention to detail the quality. I've i think never seen such a good programming video ever. I'm programming now for about 10 years.
@ekimr90
@ekimr90 6 ай бұрын
I absolutely love your method of explaining Unreal concepts. Short, concise, no "HEY IT'S YA BOI" nonsense that makes me immediately look for another video. Just straightforward and professional. It's a breath of fresh air.
@hasanjamal3574
@hasanjamal3574 Жыл бұрын
Alex, I hope you return to making Unreal Engine videos like this someday. They truly have changed the trajectory of my career (Student currently). For some people, videos like these make the difference between being overwhelmed by the mountain of knowledge needed for game dev and finding your footing and gradually being able to scale that mountain with confidence. You gave me that and I am sincerely grateful. Thank you.
@tom.looman
@tom.looman 3 жыл бұрын
This is fantastic! Super thorough and well visualized so all these dense concepts are easy to follow along with. A+ this demystifies a lot of the code flow that is difficult to figure out for newbies. (I'll add this video to my written gameplay framework guide, which isn't nearly as detailed as this)
@AlexForsythe
@AlexForsythe 3 жыл бұрын
Thanks for the shout-out!
@Developer-tx9uf
@Developer-tx9uf 2 жыл бұрын
I love to see a legend recognize another legend.
@CHADALAK1
@CHADALAK1 2 жыл бұрын
When Tom comments a video, you know you done something right :P
@nakedsingularity
@nakedsingularity 8 ай бұрын
This video is so underrated. Your channel should receive Epic MegaGrants.
@greyly_
@greyly_ 3 жыл бұрын
It's criminal how few views this video has so far. I want to come back in six months and see at least 10k. Epic should promote your videos.
@Kingu__
@Kingu__ 3 жыл бұрын
And they did :)
@greyly_
@greyly_ 3 жыл бұрын
And it hit 10k.
@Grenader1995
@Grenader1995 3 жыл бұрын
now it does have 10k and its been only a month :)
@squarerootof2
@squarerootof2 3 жыл бұрын
If you want views and subs on YT, give them cats, farts or some top ten crap. That's the nature of YT and society as a whole in general, unfortunately.
@TrojanLube69
@TrojanLube69 3 жыл бұрын
This is a class that has to be presented to game engine developers when they get hired by epic.
@invntiv
@invntiv Жыл бұрын
This guy knows his shit. Mindblowingly thorough and accurate.
@KITATUS
@KITATUS 3 жыл бұрын
Having spent the past 7-8 years in Unreal Engine 4 - I can say without a doubt, this is the best piece of educational content I have seen for the engine (Sorry Mathew, I still love you!). Keep up the great work!
@TrojanLube69
@TrojanLube69 3 жыл бұрын
Mathew’s videos are good to get a grasp on blueprints. This guy has been working in unreal engine since early days of the commercial engine. So he knows, and he is a really good software engineer.
@nsgoneape9899
@nsgoneape9899 Жыл бұрын
You are a major component of why the human species will progress
@yashkhd1100
@yashkhd1100 Жыл бұрын
This is one of the rarest video of UE. When dealing with huge source repo like UE you actually need this kind of video to understand overall picture of why things are the way it is. This definitely gives lot of confidence if you plan to update engine. Unfortunately the guy seems busy with other stuff as his channel seems inactive from about an year.
@reubs
@reubs 3 жыл бұрын
You sir have put my videos to shame. Excellent work!
@behrampatel3563
@behrampatel3563 2 жыл бұрын
Dont be so harsh on yourself. I am learning a lot from your videos as well. Both of you are fantastic
@PixelPulse168
@PixelPulse168 9 ай бұрын
Your presentation skill is remarkable.
@MikeLeed
@MikeLeed 11 ай бұрын
This is the best video on Unreal Engine architecture available out there bar none.
@wesc6755
@wesc6755 3 жыл бұрын
This is exactly the kind of video that's just not found anywhere else. It's straight to the point and no irrelevant tangents trying to cram in a C++ tutorial. Whenever I hear "For those that don't already know..." in a video, it's a cue to scrub ahead until I get to the actual *point* of the video and it drives me crazy. Thank you for being respectful of our time.
@keithlarsson4264
@keithlarsson4264 Жыл бұрын
Hands down the MOST INFORMATIVE video on UE.
@JellyfishJNM
@JellyfishJNM Ай бұрын
A bit sad that I only discovered this series when it has been long finished Desevers so much more love. Hands down the best high level unreal tutorials I have ever come across.
@grey3318
@grey3318 Жыл бұрын
Alex, I've been watching a ton of your videos the past 6 months or so as I've been learning Unreal for my own projects, and I wanted to share that I just got my first professional job in game dev, in part due to the projects I've built in Unreal. So, thanks for all the help in that process. I've still got a long ways to go in learning, but getting my foot in the door here will allow me to genuinely make a career out of game dev! I'm super excited for the future.
@vince4417
@vince4417 Ай бұрын
Best UE video ever made.
@MarkerInteractive
@MarkerInteractive 3 жыл бұрын
This is pure gold. This SHOULD be promoted
@markyoshikawa4278
@markyoshikawa4278 3 жыл бұрын
It felt like I was hired by Epic and you were on boarding me... Thanks so much!
@TrojanLube69
@TrojanLube69 3 жыл бұрын
Way so underrated! This deserves more views
@harshamohite1289
@harshamohite1289 3 жыл бұрын
I've been using UE4 for three years and this video cleared up so much, I can't believe I didn't find something like this sooner. Very thorough, and incredibly high-quality walkthrough of the game loop. Hats off to you!
@watcover3396
@watcover3396 3 жыл бұрын
Hi from the Unreal Engine CIS community, thanks for your hard work, it very helpful!
@P4nd0
@P4nd0 2 жыл бұрын
A month ago, I started creating a game only based on C++, no blueprints, and this goal led me to watch (for now) nearly 50 videos about UE4. But man, this video's the only one who needs to be watched before starting anything else. That's the entry point of the universe. The framework is really well explained and detailed, and it helped me to get a different approach about my game conception. I have stumbled on this tutorial almost by accident, but it's like discovering a tiny shiny diamond in a wild and inextricable maze.
@the-nomad-show
@the-nomad-show Күн бұрын
This was great! Made me understand why things work as they do in UE, thank you!
@calccalccalc
@calccalccalc Жыл бұрын
The analogy about how ancient codebases start up and the big bang is a kind of a transcendent realisation, to me at least. Great stuff.
@barelyvisibl
@barelyvisibl Жыл бұрын
the pace is freaking high but the explanation itself is very useful. Thank you!
@Keytotruth
@Keytotruth Жыл бұрын
By far, the best Unreal Engine video ever. It has saved my ass so many times. Thank you!
@johnrex7108
@johnrex7108 Ай бұрын
An absolutely excellent breakdown of Unreal. Well done, man. Can't tell you how much new people to Unreal benefit from these types of videos.
@Ranger75th
@Ranger75th 3 жыл бұрын
This is by far the best overview of UE4 internals that has ever been done! I never would have found this if it hadn't shown up on Epics site. Thank You!
@user-fr3it7zo5s
@user-fr3it7zo5s 9 ай бұрын
Perfect explanation for engine starter!
@joshuamcmillan6390
@joshuamcmillan6390 5 ай бұрын
I’ve needed this! I’ve been banging my head against a wall not understanding how the engine was designed, now it’s all making sense!
@estranhokonsta
@estranhokonsta Жыл бұрын
Another essentials reference video to bookmark and re-watch later. Your videos are beginning to creepily occupy all my Unreal bookmarks. At this time my worry is that there are too little of them. Thanks again.
@gamebird9640
@gamebird9640 Жыл бұрын
Why did I not find you all these years !!! Class Apart content
@marckleise6436
@marckleise6436 3 жыл бұрын
This is probably the best video I've ever seen about the UE framework and I've looked at hundreds. Epic should use this as a primer for new users and include it in the docs.
@Strelokos666
@Strelokos666 Жыл бұрын
that's really good description for the programming (engineering) in a nutshell : you just woke up 1 frame after the big bang and you first need to define yourself as something while there's not even a term "something" and a word "define".
@siebren014
@siebren014 Жыл бұрын
You deserve an award for this video
@BudgiePanic
@BudgiePanic 2 жыл бұрын
This channel is a real hidden gem. It's great exposure for someone like me who just started studying software engineering.
@LionKing25302
@LionKing25302 Жыл бұрын
From a software engineer's point of view who recently started studying UE and game making, I'd say your videos are one of the best out there. I really think UE should hire people like you to create solid documentation and educational videos that touch these topics with the needed depth.
@CompanionCube
@CompanionCube 3 жыл бұрын
From somebody who learned this on his own: This video is the best entry point if you want unreal from scratch!
@seethe639
@seethe639 Жыл бұрын
What an absolute treasure of a video... Thank you for making it!
@SherajusSalehin
@SherajusSalehin 8 ай бұрын
Best video I've found on Unreal engine by a long shot. Hats off to you, brother.
@jdigi78
@jdigi78 2 жыл бұрын
I've only watched one other video and only 2 minutes of this one, but I can already say your videos are on another level than anything else when it comes to explaining things
@disruptive_innovator
@disruptive_innovator 8 ай бұрын
this is the info I've been seeking to orient myself before making the plunge into some unreal fun. top notch job!
@JordanService
@JordanService Жыл бұрын
Wow this reduces anxiety. So soothing!
@KRN1VOR
@KRN1VOR 3 жыл бұрын
Excellent - Complex yet Concise - Engaging Visualizations - Essential Principles - and clearly Transcendent - May I have another !
@sgtbooz
@sgtbooz 2 жыл бұрын
An actual person has actually broken through the main loop of the engine. That's world news. Subed.
@b.laciak8175
@b.laciak8175 2 жыл бұрын
Amazing, in-depth material with great presentation. Thank you!
@cthutu
@cthutu 2 жыл бұрын
I can't give this video enough thumbs-up! Well presented and compact.
@thoeme
@thoeme 3 жыл бұрын
Simply amazingly put together. Many thanks for that hard work!
@duke6800
@duke6800 9 ай бұрын
Just amazing! Thank you!
@unrelic4988
@unrelic4988 Жыл бұрын
Unreal should hire you for all of their tutorial videos. Your work is exceptional. Thank you!
@ericfear
@ericfear 3 жыл бұрын
This is phenomenally well explained, the graphics and sequence of topics flowed in a way that made this enoyable to digest. Nice work!
@olamidedavid4910
@olamidedavid4910 2 жыл бұрын
This Unreal Engine Game Framework video is even more detailed than the one Epic Games themselves made. Loool
@alwayssadbuttruthful
@alwayssadbuttruthful 7 ай бұрын
absolutely astounding quality. thank you
@Raul-ye6kz
@Raul-ye6kz 3 жыл бұрын
I recently started thinking about using unreal engine to make my first game and honestly had no idea how Unreal Engine worked. This video is a godsend for people with a basic understanding of C++.
@KN-ci4dm
@KN-ci4dm 3 жыл бұрын
This is a MUST-WATCH.
@LeozorDub
@LeozorDub 2 жыл бұрын
I've been looking for this for several years, thank you
@TheWebDrake
@TheWebDrake 2 жыл бұрын
This has to be the single most useful Unreal Engine video on KZfaq. Nothing else I can say really, amazing work!
@TheWhoopah
@TheWhoopah Жыл бұрын
This was an amazing video! The visuals made it really pedagogical and thorough, helped me crack a difficult problem!
@Dan-gt3ov
@Dan-gt3ov Жыл бұрын
This is the best piece of UE content I've ever seen. Thank you.
@OGU44
@OGU44 8 ай бұрын
Awesome work mate! Very comprehensive! Thank you!!
@thoril.pegason
@thoril.pegason Жыл бұрын
I've watched so many programming videos and this is by far one of the best.
@JuanluMorales
@JuanluMorales 3 жыл бұрын
I see myself returning to this video every week
@QuackTeamJames
@QuackTeamJames 3 жыл бұрын
As you mentioned in the outro, the animated graphics are really amazing. Honestly, giving people a way to visualise what the code is doing that isn't lines of code is one of the best ways to help people understand and differentiate what is actually going on in a logical way. Thanks for all your hard work Alex!
@PabitraPadhy
@PabitraPadhy 2 жыл бұрын
Also, if you have noticed.. look at the color coding of the checkpoints, pawn are outlined as Green circle, and others with other colour. So much detailed.
@bub1ick
@bub1ick 3 жыл бұрын
Unbelievable work! So informative and detailed. I was so amazed to see such a good presentation with such flawless animations and simplicity.
@MrDebranjandutta
@MrDebranjandutta 2 жыл бұрын
It's almost criminal that we get this cognizant high quality training for free. Thank you
@iPwnN00bsTC
@iPwnN00bsTC 3 жыл бұрын
incredibly good visualizations! amazing work!
@Krustachu
@Krustachu 3 жыл бұрын
Sir, your videos are by far the most well made and well explained on youtube. Thank you for taking the time to make those.
@antruongsi2544
@antruongsi2544 11 ай бұрын
I remember the first time I came here, no Idea what you talking about whatsoever, then I learn a bit of C++ and keep coming back, each time I understand a bit more, the later I come back here I need to pause every 2 second to comprehend what you have just said, the video is incredible infomative, thank you is not enough.
@guanzhongli6249
@guanzhongli6249 2 жыл бұрын
Thank you so much for providing such a high quality course!
@drakouzdrowiciel9237
@drakouzdrowiciel9237 Ай бұрын
I found this tutorial incredibly helpful.
@zoser
@zoser 3 жыл бұрын
Holy shit, this is awesome! as someone working with the source code on daily basis I wish I had seen this video before. Please continue making similar videos
@jonasmlgaard8884
@jonasmlgaard8884 3 жыл бұрын
As always, amazing content Alex. Love how you use those animations to accompany the verbal message. Super informative and very inspiring to watch and listen to. I've been trying to wrap my head around how the engine boots up for quite a while and never fully managed to keep focus to understand how it ever reached BeginPlay. I will for sure be rewatching this video a few times, but damn good job at explaining it from start to end.
@alekelpragh
@alekelpragh 3 жыл бұрын
Awesome work! This might be the most important video about the UnrealEngine I've ever seen so far. I always had an idea about what happened when, but to actually run down the command chain to see what object is available at what time is priceless knowledge. Thank you very much to present this complex topic in that easily comprehensible way!
@yunus5949
@yunus5949 2 жыл бұрын
the best video about UE architecture, I saw.
@danielorchard6404
@danielorchard6404 3 жыл бұрын
Absolutely incredible video, amazingly well done!
@Account-fi1cu
@Account-fi1cu 2 ай бұрын
dude i love the big bang theory analogy, thank you for sharing your knowledge
@centneriss
@centneriss 3 жыл бұрын
Very crisp and concise explanation of the basics how UE4 works under the hood. Thank you so much! Subscribed.
@rolandbalogh889
@rolandbalogh889 3 жыл бұрын
Hoooly, this is a very well put together video! Thank you! This should be featured in the official UE docs :)
@DezBoyle
@DezBoyle 2 жыл бұрын
Criminally underrated channel for how incredible your explanation and video production is
@TalisBarbalho
@TalisBarbalho 3 жыл бұрын
I have no idea how I got here, but I wish it happened earlier. Thank you so much for this video!
@kjiggity300
@kjiggity300 3 жыл бұрын
Thank you for this detailed rundown!
@Beriol9
@Beriol9 3 жыл бұрын
Outstanding quality, extremely helpful! Thanks a lot for this!
@rk_iv
@rk_iv 3 жыл бұрын
This is amazing. I'm absolutely blown away. This makes me feel like I know nothing about Unreal. Thanks for putting in the effort to making this.
@HojuMedia
@HojuMedia Жыл бұрын
This is criminally underviewed for how much effort would have gone into making this
@Elou44Prod
@Elou44Prod 3 жыл бұрын
Absolutely STUNNING! Thank you so much. I wish there were more videos on advanced topics for the UE. You really deserve a MegaGrant (or should apply for it)
@seventfour9247
@seventfour9247 2 жыл бұрын
incredible work. incredible. just massive
@AxioMATlC
@AxioMATlC 3 жыл бұрын
This is such a good explanation that from a laymen to an expert could get value from it.
@amilani4
@amilani4 7 ай бұрын
Gotta say this one of the (if not the) best programming breakdowns I've ever seen, really excellent work. A shame it seems you've stopped making videos, this is brilliant.
@wassollderscheiss33
@wassollderscheiss33 Жыл бұрын
Great video. I'm a pro developer and even did my own 3D engine 30 years ago (in asm with 15). I didn't know the Unreal engine internally up until I just saw the first few minutes of your video. I instantly got it. Thanks. I'm kind of shocked that rather bad coding makes such a good engine ;-)
@lopezfernando1508
@lopezfernando1508 2 жыл бұрын
Thanks for sharing this!! Incredible how this video shows the core of Unreal engine about the c++ framework. Applauses
@redfruit1993z
@redfruit1993z Жыл бұрын
That is exactly the explanation I needed.
@igorzhironkin2231
@igorzhironkin2231 2 жыл бұрын
Incredible video. It's unbelievable how useful it is.
@ayrtonolvera4222
@ayrtonolvera4222 6 ай бұрын
Nice video! Thanks for all the effort to put this together
Multiplayer in Unreal Engine: How to Understand Network Replication
22:08
Unreal vs. Unity: Actors & Components, Inheritance & Composition
13:38
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 967 М.
Ауылға қайт! | АСАУ | 2 серия
33:16
Qarapaıym Qanal
Рет қаралды 1 МЛН
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
Unreal Engine C++ Project Setup, From Scratch
30:46
Alex Forsythe
Рет қаралды 77 М.
UE5 Understanding hard and soft references - Be a better game dev
19:58
The Roots of Unreal Engine 4: Game Engines from 2006 to Today
9:47
Alex Forsythe
Рет қаралды 20 М.
Getting into C++ with Unreal Engine - Part1 - Setting up
34:49
USE Gameplay Tags
10:38
The Game Dev Cave
Рет қаралды 33 М.
Unreal Engine 5 Modules: How and Why you should be using them!
11:43
Sneaky Kitty Game Dev
Рет қаралды 10 М.
Version Control in Unreal Engine 5 - Git, Github and Gitlab
15:16
Why Solo Developers Should Use Unreal
10:55
Thomas Brush
Рет қаралды 282 М.
Blueprint Interfaces | Unreal Engine 5 Tutorial
14:41
Tyler Serino
Рет қаралды 33 М.