유니티 C# 파일 저장 불러오기 간단 구현 File Save Load


유니티 C# 파일 저장 불러오기 간단 구현 File Save Load

코드 작성 using UnityEngine; using System.IO; public class FileSaveLoad : MonoBehaviour { private string savePath; private void Start() { savePath = Application.persistentDataPath + "/save.txt"; } private void SaveData(string data) //저장하기 { StreamWriter writer = new StreamWriter(savePath); writer.Write(data); writer.Close(); Debug.Log("Data saved to: " + savePath); } private string LoadData() //불러오기..


원문링크 : 유니티 C# 파일 저장 불러오기 간단 구현 File Save Load