/// <summary>Permanently destroys this UI batch.</summary> public void Destroy() { if (Renderer == null) { return; } if (IsolatedProperty != null) { IsolatedProperty.Isolated = false; IsolatedProperty.OnBatchDestroy(); IsolatedProperty = null; } if (Mesh != null) { Mesh.Destroy(); Mesh = null; } Renderer = null; }