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

Method Unload

Source/Engine/Scripting/ManagedCLR/MCore.cpp:127–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void MAssembly::Unload(bool isReloading)
128{
129 if (!IsLoaded())
130 return;
131 PROFILE_CPU();
132
133 Unloading(this);
134
135 // Close runtime
136 UnloadImage(isReloading);
137
138 // Cleanup
139 _debugData.Resize(0);
140 _assemblyPath.Clear();
141 _isLoading = false;
142 _isLoaded = false;
143 _hasCachedClasses = false;
144#if USE_NETCORE
145 ArenaAllocator::ClearDelete(_typeClasses);
146 _classes.Clear();
147#else
148 _classes.ClearDelete();
149#endif
150 Memory.Free();
151
152 Unloaded(this);
153}
154
155MClass* MAssembly::GetClass(const StringAnsiView& fullname) const
156{

Callers 4

unloadMethod · 0.45
TickMethod · 0.45
DestroyMethod · 0.45

Calls 6

IsLoadedFunction · 0.70
ClearDeleteFunction · 0.50
ResizeMethod · 0.45
ClearMethod · 0.45
ClearDeleteMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected