ResetRenderer(IPanel)
Resets the renderer of the panel. Releases all meshes, rendering commands, and pools owned by the renderer.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static void ResetRenderer(this IPanel panel)
Parameters
Remarks
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.