Reader small image

You're reading from  Unreal Engine 5 Game Development with C++ Scripting

Product typeBook
Published inAug 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781804613931
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
ZHENYU GEORGE LI
ZHENYU GEORGE LI
author image
ZHENYU GEORGE LI

Zhenyu George Li is a passionate video game developer with 20+ years of experience. He has contributed significantly to many games and serves as a senior development consultant at Unity. His early immersion in technologies like C/C++, DirectX, OpenGL, and Windows GUI laid the foundation for his success. Notable titles in his portfolio include Magic Arena, Halo Infinity, Stela, Dead Rising 2, and The Bigs 2. He has gained extensive knowledge in programming, graphics, animation, gameplay, AI, multiplayer, and UI using Unreal and Unity engines. Additionally, he has taught UE at Vancouver Film School and has college teaching experience at College of Interactive Arts and Hefei Union University.
Read more about ZHENYU GEORGE LI

Right arrow

Summary

We just investigated the C++ MyShooter project by looking at the basic project structure and reviewing the source code. You should now have an overall idea about what the C++ scripts do and how they collaborate with the engine and the Blueprints.

From the sample game code, you have also learned some useful Unreal C++ scripting skills.

First, we reviewed the code for creating Unreal recognizable C++ classes by marking them with the UCLASS macro and the specifiers. You now understand that the Unreal Engine Reflection System will use the information associated with the macros and the specifiers to spawn objects and components. You then got to know some Unreal base classes such as ACharacter, AActor, USphereComponent, UActorComponent, and AGameModeBase that can be inherited to create new game classes.

Second, we looked at the code that defines class variables and declares class functions with the UPROPERTY and UFUNCTION macros. Like the UCLASS macro you learned about before...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Unreal Engine 5 Game Development with C++ Scripting
Published in: Aug 2023Publisher: PacktISBN-13: 9781804613931

Author (1)

author image
ZHENYU GEORGE LI

Zhenyu George Li is a passionate video game developer with 20+ years of experience. He has contributed significantly to many games and serves as a senior development consultant at Unity. His early immersion in technologies like C/C++, DirectX, OpenGL, and Windows GUI laid the foundation for his success. Notable titles in his portfolio include Magic Arena, Halo Infinity, Stela, Dead Rising 2, and The Bigs 2. He has gained extensive knowledge in programming, graphics, animation, gameplay, AI, multiplayer, and UI using Unreal and Unity engines. Additionally, he has taught UE at Vancouver Film School and has college teaching experience at College of Interactive Arts and Hefei Union University.
Read more about ZHENYU GEORGE LI