5. Shared pointers and memory lifetime

Опубликовано: 15 Июнь 2026
на канале: Technically Games
2,377
58

Synopsis
We've had one session on pointers yes, but what about a second session on pointers? ;)

In Unreal Engine C++, we don't actually use raw pointers all that often. Instead, we use the shared pointer templates such as TSharedPtr so that the classes and structs we allocate are automatically reference counted.

This session covers everything you need to know about shared pointers in Unreal Engine C++, including how to allocate things with MakeShared, weak pointers with TWeakPtr and using TSharedFromThis.

Slides
https://junerhodes.au/history/#unreal...

Playlist
   • Unreal Engine C++ Workshop  

Speaker
June Rhodes - She/Her
https://mastodon.social/@hq

June is the owner of Redpoint Games, where she develops multiplayer and online-focused plugins for the Unreal Engine Marketplace. June has over a decade of programming experience, and has been writing low level C++ code for Unreal Engine for the last few years.

Technically Games 2022
https://technicallygames.com.au/