【Unity】监听GameView分辨率变化
来源:互联网 发布:校园谈论源码 编辑:程序博客网 时间:2024/05/02 00:21
原文地址:http://weibo.com/819881121?from=myfollow_all&is_all=1#_rnd1455674673856
using UnityEngine;using System.Collections;[ExecuteInEditMode]public class GameViewTest : MonoBehaviour{ private float lastwidth = 0f; private float lastheight = 0f; private void OnGUI() { if (lastwidth != Screen.width || lastheight != Screen.height) { lastwidth = Screen.width; lastheight = Screen.height; print("Resolution :" + Screen.width + " X" + Screen.height); } }}
0 0
- 【Unity】监听GameView分辨率变化
- Unity 编辑器中获取GameView的分辨率
- Unity监听Hierachy视图变化
- unity 编辑器扩展控件属性变化监听 BeginChangeCheck
- Unity 监听Project视图结构变化的事件
- unity杂项 unity分辨率问题 分辨率突变
- GameView.cpp
- GameView.h
- ContentObserver监听数据库变化
- android 监听位置变化
- 数据库变化监听方法
- 监听EditText的变化
- android 监听方向变化
- ContentProvider 监听数据变化
- iOS监听相册变化
- 监听EditText内容变化
- 监听网络变化Reachability
- JNotify监听文件变化
- AR增强现实-使用测评
- easyui form load方法
- centos 6.5 下安装mysql
- 线程
- CentOS6.5下MySQL无法远程连接的问题
- 【Unity】监听GameView分辨率变化
- PowerDesigner逆向工程导入MYSQL数据库总结
- Jquery 选择器介绍
- DO_BUFFERED_IO和DO_DIRECT_IO与其他方式的区别
- android studio设置代理更新
- linux下c程序调试
- JS获取浏览器窗口大小
- 字母 日期或时间元素 表示 示例 (java)
- 正则表达式全部符号解释