Example #1
0
    //void CheckScriptObjectHasCorrectClass(MonoScript script, ScriptableObject sptObj)
    //{
    //    func.CheckScriptObjectHasCorrectClass(script, sptObj);
    //}
    void ChangeInputPath(int id)
    {
        if (!string.IsNullOrEmpty(DrawDragbleTextField("输入路径:", id)))
        {
            string tempPath = dragbleTextField[id].text;

            func.data.paths.textPath = tempPath;
        }

        if (GUILayout.Button("改变路径"))
        {
            displayTableInfoList = func.ReadTableInfo();
        }
    }
Example #2
0
    public static void BatchModeCreateAssets()
    {
        ysTableBundleData editorData = new ysTableBundleData();

        editorData.Initialize();
        ysTableBundleFunc editorFunc = new ysTableBundleFunc();

        editorFunc.data = editorData;
        List <ysTableBundleData.TableInfo> tableInfoList = editorFunc.ReadTableInfo();

        for (int i = 0; i < tableInfoList.Count; i++)
        {
            if (tableInfoList[i].classScript == null)
            {
                continue;
            }
            editorFunc.CreateAssetByTxt(tableInfoList[i]);
        }
    }
Example #3
0
 public static void Initialize()
 {
     func = new ysTableBundleFunc();
     displayTableInfoList = func.ReadTableInfo();
     window = EditorWindow.GetWindow(typeof(ysTableBundleWindow), true);
 }