示例#1
0
 public static void ChangeSortingLayer(this Renderer renderer, SortingLayerInfo info, int sortingOrder)
 {
     renderer.sortingLayerName = info.Name;
     renderer.sortingOrder     = sortingOrder;
 }
示例#2
0
 public static void ChangeSortingLayer(this Renderer renderer, SortingLayerInfo info)
 {
     renderer.sortingLayerName = info.Name;
 }