RuntimePanelUtils.ResetRenderer

Declaration

public static void ResetRenderer(UIElements.IPanel panel);

Description

Resets the renderer of the panel. Releases all meshes, rendering commands, and pools owned by the renderer.

Call this method to force a defragmentation and reordering of mesh memory. This can potentially reduce draw calls and memory usage. Use sparingly, such as during Scene loading or for testing.


Did you find this page useful? Please give it a rating: