Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static void ResetRenderer(this IPanel panel)

Parameters

panel

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.