using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using Newtonsoft.Json; public class HelpTool : EditorScript { public string sss; // Start is called before the first frame update void Start() { //var a = JsonConvert.DeserializeObject(sss); //Debug.Log(JsonConvert.SerializeObject(a)); } // Update is called once per frame void Update() { } [ContextMenu("重命名子文本")] public void RenameHelper() { var temp = GetComponentsInChildren(); for (int i = 0; i < temp.Length; i++) { temp[i].text = "设备" + (i + 1); } } }