Example #1
0
    public static void BatchModeExportAssets()
    {
        ysTableBundleData editorData = new ysTableBundleData();

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

        editorFunc.data = editorData;
        editorFunc.scriptableObjectList = editorFunc.ReadScriptableObjectList(editorData.paths.scriptableObjectPath);
        editorFunc.ExportScriptableObjects(
            editorFunc.scriptableObjectList,
            editorFunc.data.buildTarget,
            editorFunc.data.bundleName,
            editorFunc.data.outputDirectoryPath);
    }
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);
 }