public static void ChangeSortingLayer(this Renderer renderer, SortingLayerInfo info, int sortingOrder) { renderer.sortingLayerName = info.Name; renderer.sortingOrder = sortingOrder; }
public static void ChangeSortingLayer(this Renderer renderer, SortingLayerInfo info) { renderer.sortingLayerName = info.Name; }