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

Method unload

Source/Engine/Content/Assets/Material.cpp:429–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429void Material::unload(bool isReloading)
430{
431#if COMPILE_WITH_SHADER_COMPILER
432 UnregisterForShaderReloads(this);
433#endif
434
435 if (_materialShader)
436 {
437 _materialShader->Unload();
438 Delete(_materialShader);
439 _materialShader = nullptr;
440 }
441
442 Params.Dispose();
443}
444
445AssetChunksFlag Material::getChunksToPreload() const
446{

Callers

nothing calls this directly

Calls 3

DeleteFunction · 0.85
UnloadMethod · 0.45
DisposeMethod · 0.45

Tested by

no test coverage detected