public override void _ExitTree() { _button.QueueFree(); _settingsDialog.QueueFree(); _settingsButton.QueueFree(); foreach (Node2D preview in _previews) { preview.QueueFree(); } }
public override void _ExitTree() { RemoveCustomType("Custom3DPath"); path = null; handleMenu.QueueFree(); curveClose.QueueFree(); curveDel.QueueFree(); curveCreate.QueueFree(); curveEdit.QueueFree(); RemoveSpatialGizmoPlugin(gizmoPlugin); gizmoPlugin = null; sep.QueueFree(); }