当前位置:网站首页>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路径下
边栏推荐
- An article takes you into the world of cookies, sessions, and tokens
- The research trend of map based comparative learning (gnn+cl) in the top paper
- STM32简易多级菜单(数组查表法)
- Generate confrontation network
- C # compare the differences between the two images
- Introduction Guide to stereo vision (4): DLT direct linear transformation of camera calibration [recommended collection]
- 2311. Longest binary subsequence less than or equal to K
- 我的一生.
- A detailed explanation of the general process and the latest research trends of map comparative learning (gnn+cl)
- C语言-从键盘输入数组二维数组a,将a中3×5矩阵中第3列的元素左移到第0列,第3列以后的每列元素行依次左移,原来左边的各列依次绕到右边
猜你喜欢
Rebuild my 3D world [open source] [serialization-1]
Applet data attribute method
Applet global style configuration window
fs. Path module
Node collaboration and publishing
编辑器-vi、vim的使用
Add discount recharge and discount shadow ticket plug-ins to the resource realization applet
LeetCode 496. 下一个更大元素 I
混淆矩阵(Confusion Matrix)
一次 Keepalived 高可用的事故,让我重学了一遍它
随机推荐
The research trend of map based comparative learning (gnn+cl) in the top paper
uni-app 实现全局变量
利用请求头开发多端应用
Analysis of eventbus source code
2310. 个位数字为 K 的整数之和
Svg optimization by svgo
Node collaboration and publishing
Causes and appropriate analysis of possible errors in seq2seq code of "hands on learning in depth"
一次 Keepalived 高可用的事故,让我重学了一遍它
[code practice] [stereo matching series] Classic ad census: (4) cross domain cost aggregation
Introduction Guide to stereo vision (7): stereo matching
Confusion matrix
Blogger article navigation (classified, real-time update, permanent top)
2311. Longest binary subsequence less than or equal to K
OpenGL - Lighting
Introduction Guide to stereo vision (2): key matrix (essential matrix, basic matrix, homography matrix)
Golang foundation -- map, array and slice store different types of data
Codeforces Round #648 (Div. 2) E.Maximum Subsequence Value
阿里十年测试带你走进APP测试的世界
LeetCode 496. 下一个更大元素 I