diff options
Diffstat (limited to 'Assets/SetOrderInLayer.cs')
-rw-r--r-- | Assets/SetOrderInLayer.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Assets/SetOrderInLayer.cs b/Assets/SetOrderInLayer.cs new file mode 100644 index 0000000..8a3c633 --- /dev/null +++ b/Assets/SetOrderInLayer.cs @@ -0,0 +1,20 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class SetOrderInLayer : MonoBehaviour { + + public int Order; + + // Use this for initialization + void Start () { + Renderer renderer = GetComponent<Renderer>();
+ renderer.sortingOrder = Order; + + } + + // Update is called once per frame + void Update () { + + } +} |