sling

1、存储值://本地化存储方式,一般用在保存玩家的偏好设置中,常见于玩家设置,游戏分数存取…………

  PlayerPrefs.SetFloat(string key,float value); //通过key 与value 存储,就像键值对一样。

  PlayerPrefs.SetInt(string key,Int value);

  PlayerPrefs.SetString(string key,string value);

2、读取值:

  PlayerPrefs.GetFloat(string key);  //通过key得到存储的value值

  PlayerPrefs.GetInt(string key);

  PlayerPrefs.GetString(string key);

分类:

技术点:

相关文章:

  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-21
  • 2021-10-26
  • 2021-06-20
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2021-06-13
  • 2021-11-16
  • 2022-12-23
  • 2021-06-19
  • 2021-11-09
相关资源
相似解决方案