Navigation
API > API/Plugins > API/Plugins/OnlineServicesCommonEngineUtils
Object cache keyed by world context name that verifies a world context exists before creating a new entry. It also automatically cleans up objects when PIE worlds end after the world contexts have been destroyed.
| Name | FWorldContextScopedObjectCache |
| Type | class |
| Header File | /Engine/Plugins/Online/OnlineServices/Source/OnlineServicesCommonEngineUtils/Public/Online/WorldContextScopedObjectCache.h |
| Include Path | #include "Online/WorldContextScopedObjectCache.h" |
Syntax
template<typename ObjectType>
class FWorldContextScopedObjectCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWorldContextScopedObjectCache() |
Online/WorldContextScopedObjectCache.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FWorldContextScopedObjectCache() |
Online/WorldContextScopedObjectCache.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Objects | TMap< FName, TSharedRef< ObjectType > > | Online/WorldContextScopedObjectCache.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Explicitly clear an object for the given context name. | Online/WorldContextScopedObjectCache.h | ||
TSharedPtr< ObjectType > FindOrAdd
(
FName ContextName, |
Online/WorldContextScopedObjectCache.h |