Example #1
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 #2
0
 void CreateScriptableObject(ysTableBundleData.TableInfo tableInfo)
 {
     func.CreateAssetByTxt(tableInfo);
 }