Releases: hiram3512/HiLog_unity
1.1
- Switch can be changed at anytime(not only at initial)
- Remove finger touch(because in unity editor can't multi fingers touch the screen)
- Add comments to script
#HiDebug_unity
How to use
you can download unity package from here:
Features
- Support multiple platform(unity editor, exe, Android, iOS, WP...).
- Enable or disable logs outputting just in one time.
- Whether enable logs on unity console.
- Whether enable logs on screen(so that you can still check logs if you don't want to connect Android Studio or xcode)
- Whether enable write logs into a text(default path is in persistent folder)
- Adding data and time append to you logs.
- Whether display FPS or not.
Example
void Start()
{
Debuger.EnableOnConsole(true); //disable on console
Debuger.EnableOnScreen(true);//disable on screen
Debuger.EnableOnText(true);//write in text(persistent folder)
Debuger.EnableFps(true);//display fps
Log();
}
void Log()
{
for (int i = 0; i < 5; i++)
Debuger.Log("log: " + i);
for (int i = 0; i < 5; i++)
Debuger.LogWarning("warning: " + i);
for (int i = 0; i < 5; i++)
Debuger.LogError("error: " + i);
}
Screenshot
Tip:
- You can change font size display on screen.
- You can set how many logs display on screen.
Debuger.FontSize = 20;
Debuger.ItemCountOnScreen = 100;
support: hiramtan@live.com
qq群:83596104
MIT License
Copyright (c) [2017] [Hiram]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1.0
-
Attaching time to log.
-
Write logs on screen
-
Write logs to text.
-
FPS
#HiDebug_unity
功能说明
- 兼容所有平台(编辑器,pc,Android,iOS,WP..)
- 一键控制Log是否输出(开发阶段开启Log开关,正式版本一键关闭Log输出)
- 自动记录Log日志时间
- 是否将Log显示在屏幕(手机查看方便),并可以拖拽拖动条查看旧日志,默认显示100条(可修改显示个数)
- 是否将Log显示在控制台:像unity的Debug.Log一样显示在unity3d Console窗口
- 是否将日志写入本地文本文件,方便查找日志(会生成在每个平台的可读写目录下: persistent文件夹)
- 是否显示当前帧率(FPS)
Tip:
- 可以修改屏幕上Log日志的文字大小及颜色(包括显示的FPS字体大小)
support: hiramtan@live.com