public void Init() { data = ScriptableObject.CreateInstance <ysEffectBundleData>(); data.GeneratePath(); func = new ysEffectBundleFunc(); func.editorData = data; displayList = func.ReadPrefabList(data.inputDirectoryPath); //funcPrefabs = func.ReadPrefabList(data.inputDirectoryPath); //uiprefabs = func.ReadPrefabList(data.inputDirectoryPathx00); }
public static void BatchModeExportAssets() { ysEffectBundleData data = ScriptableObject.CreateInstance <ysEffectBundleData>(); data.GeneratePath(); ysEffectBundleFunc func = new ysEffectBundleFunc(); List <GameObject> prefabs = func.ReadPrefabList(data.inputDirectoryPath); List <GameObject> uiprefabs = func.ReadPrefabList(data.inputDirectoryPathx00); func.ExportPrefabs(uiprefabs.ToArray(), data.buildTarget, "uiEffect", data.outputDirectoryPath, false); func.ExportPrefabs(prefabs.ToArray(), data.buildTarget, "functionEffect", data.outputDirectoryPath, false); }