# UpdateAllSortingGroups()

> Updates all Sorting Group immediately.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void UpdateAllSortingGroups()
```

### Remarks

This will update the sorting order for the Renderers under each active Sorting Group immediately, instead of waiting for the next LateUpdate to update the Sorting Group.
