UE5 C++ Basics #2 - Classes, Actors
I will show you how to use C++ in Unreal Engine 5 to speed up your games. Using C++ instead of blueprint is always going to be faster. Using blueprint for small tasks that don't happen often is fine, but for heavy tasks or tasks that happen often ( such as every frame ), it will get laggy very fast. To speed up your game, try doing as much as you can in c++. You can then make a child of your c++ classes in blueprint and edit/add details. How do you do that ? Well, I'll show you ! In part 2, I will go over how to make a class, use UFUNCTION to expose your functions to blueprint and even use implementable or native events to trigger blueprint behavior from c++. I will also explain the differences between a struct and a class and show an example of adding a component to an other and using it with a function that is called from blueprint. By the end of the first part and this one, you should have all the tools you need to start making your own structs, classes and actors in cpp and you should know how to do interactions between cpp and bp using blueprintcallable, nativeevent and implementableevent. --------------------------------- Subscribe for game making tutorials, other game-making related content and to follow my projects with the dev logs ! Check out my website for my other socials and if you want to see and try the games I made: https://bit.ly/MaxMakesGames 0:00 Create a Class & Actor 1:25 Functions 3:55 Make a Child Class 6:15 Struct vs Class 8:30 Create an Actor 9:10 Adding a Component 10:18 Autocomplete Fails 10:45 Actor Functions
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.