Unity常用函数注意事项
来源:互联网 发布:途虎软件下载 编辑:程序博客网 时间:2024/04/29 12:41
PlayerPrefs.GetInt 获取整数键值
Returns the value corresponding to key in the preference file if it exists.
如果存在,返回游戏存档文件中key对应的值。
If it doesn't exist, it will return defaultValue.
如果不存在,将返回默认值。
music.SetActive(PlayerPrefs.GetInt("openMusic",1)==1?false:true);返回false;
PlayerPrefs.SetInt("openMusic",PlayerPrefs.GetInt("openMusic",1)==1?0:1);music.SetActive(PlayerPrefs.GetInt("openMusic",1)==1?false:true);
返回true;
0 0
- Unity常用函数注意事项
- Unity常用函数
- Unity常用脚本函数
- Unity 3D DontDestroyOnLoad 函数使用注意事项
- Oracle 中常用函数注意事项
- Unity Shader 常用函数列表
- Unity Shader 常用函数列表
- Unity Shader 常用函数列表
- unity常用的生命周期函数
- Unity Shader 常用函数列表
- ACM杂记(技巧/注意事项/常用函数)
- Eigen常用函数以及注意事项总结
- unity常用事件函数(转)
- Unity学习之MonoBehaviour中的常用函数
- Unity学习之GUI常用函数
- 常用的函数一览表C#+Unity
- Unity基础.003MonoBehavior常用事件函数
- Unity常用脚本函数随用随记
- libevent安装与libevent定时器
- 摆脱VC++6.0,教你如何用visual Studio2010完美运行C++程序
- Bloom Filter(布隆过滤器)
- Objective C程序 block代码块 和property协议及Foundation框架
- C#进程同步之消息队列
- Unity常用函数注意事项
- [leetcode-60]Permutation Sequence(C)
- bootstrap charisma 入门学习笔记
- 数据手册中的full voltage range和limited voltage range
- java实现单链表
- Nginx配置文件nginx.conf中文详解
- hdu2222ac自动机或者裸字典树
- viewpager 自动无限循环 这段代码移到你的程序中就可以用了
- HDU - 2546 饭卡