MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / tryCallOnLoaded

Method tryCallOnLoaded

Source/Engine/Content/Content.cpp:1319–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317}
1318
1319void Content::tryCallOnLoaded(Asset* asset)
1320{
1321 ScopeLock lock(LoadedAssetsToInvokeLocker);
1322 const int32 index = LoadedAssetsToInvoke.Find(asset);
1323 if (index != -1)
1324 {
1325 LoadedAssetsToInvoke.RemoveAtKeepOrder(index);
1326 asset->onLoaded_MainThread();
1327#if USE_EDITOR
1328 onAddDependencies(asset);
1329#endif
1330 }
1331}
1332
1333void Content::onAssetLoaded(Asset* asset)
1334{

Callers

nothing calls this directly

Calls 3

RemoveAtKeepOrderMethod · 0.80
FindMethod · 0.45
onLoaded_MainThreadMethod · 0.45

Tested by

no test coverage detected