This commit is contained in:
wangzhixun 2025-11-05 10:59:26 +08:00
parent 5ef0843361
commit d8b64a6280
2 changed files with 11 additions and 11 deletions

View File

@ -3,6 +3,7 @@ using UnityEditor;
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
using System.Text;
public class QuestionConfigEditor : EditorWindow
{

View File

@ -224,17 +224,16 @@ public class QuestionManager : MonoBehaviour
c.questionName == name && c.configType == type);
}
// 获取对象的Hierarchy路径
private string GetHierarchyPath(Transform trans)
{
string path = trans.name;
while (trans.parent != null)
{
trans = trans.parent;
path = trans.name + "/" + path;
}
return path;
}
// 重新加载配置并绑定事件(可以在运行时调用)
public void ReloadConfig()