using System.Collections; using System.Collections.Generic; using UnityEngine; public class sorttext : MonoBehaviour { // Use this for initialization void Start () { GetComponent().sortingLayerName = "Text"; } // Update is called once per frame void Update () { } }