Quantcast
Channel: Questions in topic: "buildpipeline"
Viewing all articles
Browse latest Browse all 249

Create text file of folder structure via EditorScript

$
0
0
[MenuItem("Assets/AssetBundle/StandaloneWindows")] static void ExportBundleStandaloneWindows() { //Windowws string bundlePathWin = _remotePath + "StandaloneWindows"; if (!Directory.Exists(bundlePathWin)) Directory.CreateDirectory(bundlePathWin); BuildPipeline.BuildAssetBundles(bundlePathWin, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows); } so this script is creating the assetbundle i need. All working. Is it possible to create a .txt-file or a .json in the same method to list content of given directory? I've literally searched the whole web for it. I've tried everything and either I'm just not advanced enough to get it or I'm missing some vital information.

Viewing all articles
Browse latest Browse all 249

Trending Articles