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

Method unload

Source/Engine/Content/Assets/ModelBase.cpp:1012–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010}
1011
1012void ModelBase::unload(bool isReloading)
1013{
1014 // End streaming (if still active)
1015 if (_streamingTask != nullptr)
1016 {
1017 // Cancel streaming task
1018 _streamingTask->Cancel();
1019 _streamingTask = nullptr;
1020 }
1021
1022 // Cleanup
1023 MaterialSlots.Resize(0);
1024 _initialized = false;
1025 _loadedLODs = 0;
1026}

Callers

nothing calls this directly

Calls 2

CancelMethod · 0.45
ResizeMethod · 0.45

Tested by

no test coverage detected