Advertisement

[Unity][EXE][File]检测并生成新的.exe程序路径(包含相关文件夹)

阅读量:

Assets-Resources-Test_FileExist-Test_FileExist001文件夹为编辑器所在目录,该目录下的程序可正常运行。

存在一处错误,Application.StreamingAssets应调整为Application.streamingAssetsPath。

//Application.streamingAssetsPath所对应的路径为D:\UnityProject\TestEXE\TestEXE_Data\StreamingAssets

StreamingAssets文件夹的存储位置
Application.dataPath所指向的是EXE程序的路径,即TestEXE_Data文件夹的所在位置

复制代码
 using System.Collections;

    
 using System.Collections.Generic;
    
 using UnityEngine;
    
 using System.IO;//File.
    
  
    
 public class Test_FileExist : MonoBeh

全部评论 (0)

还没有任何评论哟~