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

Method OnAssetUnloaded

Source/Engine/Content/Asset.cpp:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void AssetReferenceBase::OnAssetUnloaded(Asset* asset, void* caller)
76{
77 if (_asset != asset)
78 return;
79 Unload();
80 OnSet(nullptr);
81 if (_owner)
82 _owner->OnAssetUnloaded(asset, this);
83}
84
85void AssetReferenceBase::OnSet(Asset* asset)
86{

Callers 1

onUnload_MainThreadMethod · 0.45

Calls 3

OnSetFunction · 0.85
UnloadFunction · 0.50
RemoveReferenceMethod · 0.45

Tested by

no test coverage detected