以下の内容はhttps://baba-s.hatenablog.com/entry/2022/12/08/090000より取得しました。


【Unity】データを保存できるディレクトリのパスを管理するクラス

リポジトリ

使用例

using Kogane;
using System.IO;
using UnityEngine;

public class Example : MonoBehaviour
{
    private string m_text = string.Empty;

    private void OnGUI()
    {
        GUILayout.Label( ApplicationPath.PersistentDataPath );
        GUILayout.Label( ApplicationPath.TemporaryCachePath );
        GUILayout.Label( m_text );
    }

    public void Save()
    {
        File.WriteAllText( ApplicationPath.PersistentDataPath + "/test.txt", "ピカチュウ" );
    }

    public void Load()
    {
        m_text = File.ReadAllText( ApplicationPath.PersistentDataPath + "/test.txt" );
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2022/12/08/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14