![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <StrongObjectPtrTemplates.h>
Public Types | |
| using | ElementType = ObjectType |
Take a ref-count on a UObject to prevent it from being GC'd while this guard is in scope.
TStrongObjectPtr is a strong pointer to a UObject. It can return nullptr if it has not been initialized or has been constructed from a weak ptr that is already garbage collected. It prevents an object from being garbage collected. It can't be directly used across a network.
Most often it is used when you explicitly want to prevent something from being garbage collected.
| using TStrongObjectPtr< ObjectType, ReferencerNameProvider >::ElementType = ObjectType |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |