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

Method OnScriptingDispose

Source/Engine/Content/Assets/Animation.cpp:582–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582void Animation::OnScriptingDispose()
583{
584 // Dispose any events to prevent crashes (scripting is released before content)
585 for (auto& e : Events)
586 {
587 for (auto& k : e.Second.GetKeyframes())
588 {
589 if (k.Value.Instance)
590 {
591 Delete(k.Value.Instance);
592 k.Value.Instance = nullptr;
593 }
594 }
595 }
596
597 BinaryAsset::OnScriptingDispose();
598}
599
600Asset::LoadResult Animation::load()
601{

Callers

nothing calls this directly

Calls 2

DeleteFunction · 0.85
GetKeyframesMethod · 0.45

Tested by

no test coverage detected