IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
SortingOrderHack.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 
5 public class SortingOrderHack : MonoBehaviour {
6 
7  public string targetSortingLayer = "Transparent";
8  public int targetSortingOrder = 1;
9 
10  // Use this for initialization
11  void Start () {
12  GetComponent<Renderer> ().sortingLayerName = targetSortingLayer;
13  GetComponent<Renderer> ().sortingOrder = targetSortingOrder;
14  }
15 }