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

Method unload

Source/Engine/Content/JsonAsset.cpp:311–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void JsonAssetBase::unload(bool isReloading)
312{
313 PROFILE_MEM(ContentAssets);
314 ISerializable::SerializeDocument tmp;
315 Document.Swap(tmp);
316 Data = nullptr;
317 DataTypeName.Clear();
318 DataEngineBuild = 0;
319 _isVirtualDocument = false;
320}
321
322#if USE_EDITOR
323

Callers

nothing calls this directly

Calls 2

SwapMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected