summaryrefslogtreecommitdiff
path: root/Assets/SetOrderInLayer.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-05-15 15:05:28 +0800
committerchai <chaifix@163.com>2021-05-15 15:05:28 +0800
commit1ab21678c02c7f1ccb85dda35dff3b09a7ac33ac (patch)
treef145c241c7620b76c63c835431f4c78d367d222d /Assets/SetOrderInLayer.cs
parentf342c68d13bddf451ab6cd64fc5b13cf65b65c4f (diff)
*misc
Diffstat (limited to 'Assets/SetOrderInLayer.cs')
-rw-r--r--Assets/SetOrderInLayer.cs20
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 () {
+
+ }
+}