- Unreal Engine 4 Scripting with C++ Cookbook
- William Sherif Stephen Whittle
- 144字
- 2021-07-08 10:50:50
Introduction
Memory management is always one of the most important things to get right in your computer program to ensure stability and good, bug-free operation of your code. A dangling pointer (pointer referring to something that has been removed from memory) is an example of a bug that is hard to track if it occurs.

In any computer program, memory management is extremely important. UE4's UObject
reference counting system is the default way that memory is managed for Actors and UObject
derivatives. This is the default way that your memory will be managed within your UE4 program.
If you write custom C++ classes of your own, which do not derive from UObject
, you may find the TSharedPtr
/ TWeakPtr
reference counted classes useful. These classes provide reference counting and automatic deletion for 0 reference objects.
This chapter provides recipes for memory management within UE4.
- UNIX編程藝術
- JavaScript高效圖形編程
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- Microsoft Dynamics 365 Extensions Cookbook
- Android Development with Kotlin
- Modern JavaScript Applications
- 程序員修煉之道:通向務實的最高境界(第2版)
- 碼上行動:用ChatGPT學會Python編程
- 青少年信息學競賽
- Scala Functional Programming Patterns
- Julia數據科學應用
- Elasticsearch Blueprints
- Qt 5.12實戰
- 新手學ASP.NET 3.5網絡開發
- 面向物聯網的Android應用開發與實踐