sorttext.cs 304 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class sorttext : MonoBehaviour {
  5. // Use this for initialization
  6. void Start () {
  7. GetComponent<MeshRenderer>().sortingLayerName = "Text";
  8. }
  9. // Update is called once per frame
  10. void Update () {
  11. }
  12. }