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

Method OnDestroy

Source/Engine/UI/GUI/ContainerControl.cs:726–748  ·  view source on GitHub ↗

()

Source from the content-addressed store, hash-verified

724
725 /// <inheritdoc />
726 public override void OnDestroy()
727 {
728 // Steal focus from children
729 if (ContainsFocus)
730 {
731 Focus();
732 }
733
734 // Disable layout
735 if (!_isLayoutLocked)
736 {
737 LockChildrenRecursive();
738 }
739
740 base.OnDestroy();
741
742 // Pass event further
743 for (int i = 0; i < _children.Count; i++)
744 {
745 _children[i].OnDestroy();
746 }
747 _children.Clear();
748 }
749
750 /// <inheritdoc />
751 public override bool IsTouchOver

Callers

nothing calls this directly

Calls 2

FocusFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected