/// <summary>Puts all batches of this renderer into the given unity layer.</summary> /// <param name="id">The ID of the unity layer.</param> public void RenderWithCamera(int id) { RenderLayer = id; // Set the layer of each batch: UIBatch current = FirstBatch; while (current != null) { current.RenderWithCamera(id); current = current.BatchAfter; } }