Navigation
API > API/Runtime > API/Runtime/UniversalObjectLocator
References
| Module | UniversalObjectLocator |
| Header | /Engine/Source/Runtime/UniversalObjectLocator/Public/ILocatorSpawnedCache.h |
| Include | #include "ILocatorSpawnedCache.h" |
Syntax
struct ILocatorSpawnedCache
Remarks
An interface for a basic cache used by locators that might create an object or spawn an actor during 'Load' and destroy/unspawn it during 'Unload'. Users of a UOL may choose to use a cache to control multiplicity of spawned objects/actors using the same UOL- for example to ensure only 1 is created per UOL per context, or to allow multiple. To use the cache, the resolver of the UOL must pass it as an argument in FResolveParams.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| UObject * | Find the existing object spawned for the current UOL. | ||
| FName | For objects or actors that may be created or spawned, the resolver can request a name for them to be called on Spawn. | ||
| void | ReportSpawnedObject
(
UObject* Object |
If an object is spawned by a UOL during 'Load', this should be called to register the object with the cache. | |
| void | If an object is despawned by a UOL during 'Unload' this should be called to unregister the object. |