struct PrefabCache

Allows various prefab utilities to retrieve and cache prefabs while performing operations.

Public

Methods

FindOrLoadPrefab

HPrefab FindOrLoadPrefab(const UUID &prefabId)

Attempts to find a prefab with the provided ID in the cache.

If not found prefab will be loaded and added to cache.

AddToCache

void AddToCache(const HPrefab &prefab)

Adds a previously loaded prefab to cache.

ExistsInCache

bool ExistsInCache(const UUID &prefabId)

Checks does the prefab exist in cache.

Private

Fields

mPrefabs

FrameUnorderedMap<UUID, HPrefab> mPrefabs