ShanxiKnowledgeBase/SXKnowledgeBase-master/sxknowledgebase/Assets/Scripts/EditorScripts/HelpTool.cs

33 lines
692 B
C#

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<TextMeshProUGUI>();
for (int i = 0; i < temp.Length; i++)
{
temp[i].text = "É豸" + (i + 1);
}
}
}