Unity學習心得之PlayerPrefs 持久化儲存

playerprefs是一個用來本地 持久化儲存數據的unity自帶的類,由於存儲起來比較複雜,一般用來存儲音樂開關之類較少的數據     PlayerPrefs.SetInt("數據名",int1);保存整型數據;     PlayerPrefs.GetInt("數據名",int1);讀取整形數據;     PlayerPrefs.SetFloat("數據名",float1);保存浮點型數據;
相關文章
相關標籤/搜索