当前位置:网站首页>Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
2022-07-05 09:20:00 【CoderZ1010】
目录
一、简介
Runtime Console工具可以让我们在程序Build打包后运行时,查看Log日志信息,并且可以生成日志文件。该工具已经上传至SKFramework框架中的Package Manager中,如图所示:

SKFramework框架开源地址:
https://github.com/136512892/SKFramework

二、使用说明
1.下载安装
通过菜单SKFramework/PackageManager打开开发工具包管理器:

搜索RuntimeConsole工具,点击Install下载并安装:

2.挂载组件
新建一个空物体,为其添加RuntimeConsole组件:

参数说明:
| Show Info | 是否显示普通日志信息 |
| Show Warn | 是否显示告警日志信息 |
| Show Error | 是否显示错误日志信息 |
| Show Time | 是否显示日志打印时间 |
3.快捷键
在程序运行时通过快捷键LeftCtrl+M打开和关闭控制台窗口

ps:如果快捷键有冲突可在代码中更改
private void Update()
{
//快捷键打开/关闭
if (Input.GetKey(KeyCode.LeftControl) && Input.GetKeyDown(KeyCode.M))
{
toggle = !toggle;
}
}4.日志详情
选中任一项日志,下方窗口中会显示该日志的详细信息:

点击下方Copy按钮可将日志详情复制到系统粘贴板,可使用Ctrl+V粘贴到任意其它地方进行分析。
5.清空日志
点击左上角Clear按钮可以清空当前的所有日志信息:

6.日志文件
点击右上角的FILE按钮,可以生成日志文件到StreamingAssets/Log路径下


边栏推荐
- 2310. 个位数字为 K 的整数之和
- 520 diamond Championship 7-4 7-7 solution
- Codeworks round 638 (Div. 2) cute new problem solution
- 生成对抗网络
- Greendao reported an error in qigsaw, could not init daoconfig
- Svgo v3.9.0+
- 信息與熵,你想知道的都在這裏了
- Talking about label smoothing technology
- 阿里十年测试带你走进APP测试的世界
- Summary and Reflection on issues related to seq2seq, attention and transformer in hands-on deep learning
猜你喜欢

2020 "Lenovo Cup" National College programming online Invitational Competition and the third Shanghai University of technology programming competition

Priority queue (heap)

图神经网络+对比学习,下一步去哪?

Generate confrontation network

编辑器-vi、vim的使用

Applet (use of NPM package)

LeetCode 31. 下一个排列

Creation and reference of applet

Solution to the problems of the 17th Zhejiang University City College Program Design Competition (synchronized competition)

Newton iterative method (solving nonlinear equations)
随机推荐
The research trend of map based comparative learning (gnn+cl) in the top paper
Introduction Guide to stereo vision (5): dual camera calibration [no more collection, I charge ~]
Can't find the activitymainbinding class? The pit I stepped on when I just learned databinding
520 diamond Championship 7-4 7-7 solution
scipy.misc.imread()
Attention is all you need
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Node collaboration and publishing
2311. Longest binary subsequence less than or equal to K
Explain NN in pytorch in simple terms CrossEntropyLoss
LeetCode 496. 下一个更大元素 I
Codeforces round 684 (Div. 2) e - green shopping (line segment tree)
项目实战 | Excel导出功能
Solution to the problems of the 17th Zhejiang University City College Program Design Competition (synchronized competition)
【阅读笔记】图对比学习 GNN+CL
2309. The best English letters with both upper and lower case
Newton iterative method (solving nonlinear equations)
迁移学习和域自适应
Using request headers to develop multi terminal applications
Blogger article navigation (classified, real-time update, permanent top)