12345678910111213141516171819 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class setorder : MonoBehaviour {
- public int Intloyout = 80;
- // Use this for initialization
- void Start () {
- foreach (var render in GetComponentsInChildren<Renderer>(true))
- {
- render.sortingOrder = Intloyout;
- }
- }
-
- // Update is called once per frame
- void Update () {
-
- }
- }
|