/// <summary>Clears all content from the UI and all WorldUI's. /// Please note that it is safer to set innerHTML to a blank string for a particular UI than calling this.</summary> public static void ClearAll() { content = null; if (Renderer != null) { Renderer.Destroy(); Renderer = null; document = null; } Fonts.Clear(); AtlasStacks.Clear(); Web.Clear(); Spa.SPA.Clear(); UIAnimation.Clear(); ScreenInfo.Clear(); WorldUI currentWorldUI = FirstWorldUI; while (currentWorldUI != null) { currentWorldUI.Destroy(); currentWorldUI = currentWorldUI.UIAfter; } LastWorldUI = null; FirstWorldUI = null; }
/// <summary>Clears all content from the UI and all WorldUI's. /// Please note that it is safer to set innerHTML to a blank string for a particular UI than calling this.</summary> public static void ClearAll() { content = null; if (Renderer != null) { Renderer.Destroy(); Renderer = null; document = null; } Fonts.Clear(); AtlasStacks.Clear(); Http.Clear(); SPA.Clear(); UIAnimation.Clear(); DynamicTexture.RemoveAll(); PowerUI.Input.Clear(); ScreenInfo.Clear(); WorldUI currentWorldUI = FirstWorldUI; while (currentWorldUI != null) { currentWorldUI.Destroy(); currentWorldUI = currentWorldUI.UIAfter; } LastWorldUI = null; FirstWorldUI = null; }