This version of Unity is unsupported.

SortingGroup.UpdateAllSortingGroups

public static void UpdateAllSortingGroups();

Description

Updates all Sorting Group immediately.

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.