summaryrefslogtreecommitdiff
path: root/Assets/SetOrderInLayer.cs
blob: 8a3c633e5b359812b233bca59aef136e9ece9ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 () {
		
	}
}