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(true)) { render.sortingOrder = Intloyout; } } // Update is called once per frame void Update () { } }