Copy files from Resources/StreamingAssets to Application.persistentDataPath upon installation

后端 未结 2 1382
情深已故
情深已故 2020-11-30 13:06

I have txt file which contains data for my maps in game. Problem is that file is stored in Application.persistentDataPath so I can change it even f

2条回答
  •  遥遥无期
    2020-11-30 13:33

    You can store this file in your Resources folder and copy it to Application.persistentDataPath at your first app launch. Or read the file from Resources at first launch and create file with the same content in Application.persistentDataPath.

提交回复
热议问题