MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / Close

Method Close

Engine/Source/LuminaSharp/UI/UIDocument.cs:44–50  ·  view source on GitHub ↗

Unload and destroy the document. Element handles from it become invalid; dispose any on its elements first.

()

Source from the content-addressed store, hash-verified

42 // Invalidates element handles, so dispose their UIEventSubscriptions first.
43 public void Close()
44 {
45 if (IsValid)
46 {
47 UIWorld.FromHandle(World).UI.UnloadDocument(Handle);
48 }
49 }
50
51 public void Dispose() => Close();
52
53 public void BringToFront()

Callers

nothing calls this directly

Calls 1

UI_UnloadDocumentMethod · 0.80

Tested by

no test coverage detected