예제 #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);
    }
예제 #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]);
        }
    }
예제 #3
0
 public static void Initialize()
 {
     func = new ysTableBundleFunc();
     displayTableInfoList = func.ReadTableInfo();
     window = EditorWindow.GetWindow(typeof(ysTableBundleWindow), true);
 }