Giter Site home page Giter Site logo

scbwin / unity3druntimedebug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luzexi/unity3druntimedebug

0.0 2.0 0.0 1.74 MB

Unity3D RuntimeDebug can show debug information in Android , iOS , and all of the platform.

License: MIT License

C# 100.00%

unity3druntimedebug's Introduction

Unity3DRuntimeDebug

#运行时调试信息 RuntimeDebug可以在安卓,iOS等所有平台应用运行时显示调试信息。(Unity3D RuntimeDebug can show debug information in Android , iOS , and all of the platform.)

如果你想要使用它就必须进行初始化。(If you want to use it , you must init it like this.)

Reporter.Init();

如何显示调试信息画面?(How to show the debug ui panel)

用手指或者鼠标在屏幕上旋转n圈就可以调出调试画面(You need to put your finger on the screen and move around and move around and move around , then it will be show.)
为什么是n圈呢?为了排除不是项目中其他操作而误被调的。(Why must to move around so much times? Because it must to sure it is not for other operation.)

扩展功能

它还可以显示自定义的调试信息,像玩家Id或名字等。(It have debug information can show in reporter like player Id or player name.)

你需要继承ReporterMessageReceiver,它有4个事件可以重载。(you need inheritance ReporterMessageReceiver. It have 4 events , so if you want to use you can override it.)
void OnPreStart()
void OnHideReporter()
void OnShowReporter()
void OnLog( Reporter.Log log )

在ReporterMessageReceiver里,有一个reporter实例引用,你可以使用它来设置调试信息。(In the ReporterMessageReceiver, it have reporter instance. You can use it to set debug information.)

reporter.UserData = "Put user date here like his account to know which user is playing on this device"

github

Welcome to my blog : http://www.luzexi.com

unity3druntimedebug's People

Contributors

luzexi avatar findix avatar

Watchers

James Cloos avatar chuanbo song avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.