手机打包Debug显示
Posted GamePal
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了手机打包Debug显示相关的知识,希望对你有一定的参考价值。
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DeviceBuildDisplay : MonoBehaviour { internal void OnEnable() { Application.logMessageReceived+=HandleLog; } internal void OnDisable() { Application.logMessageReceived += null; } private string m_logs; /// <summary> /// /// /// </summary> /// /// <param name="logString">错误信息</param> /// /// <param name="stackTrace">跟踪堆栈</param> /// /// <param name="type">错误类型</param> void HandleLog(string logString, string stackTrace, LogType type) { m_logs += logString + "\n"; } public bool Log; private Vector2 m_scroll; internal void OnGUI() { if (!Log) return; m_scroll = GUILayout.BeginScrollView(m_scroll); GUILayout.Label(m_logs); GUILayout.EndScrollView(); } }
以上是关于手机打包Debug显示的主要内容,如果未能解决你的问题,请参考以下文章
WPF程序如何打包成安装包或者exe文件?bin\debug里面没有exe,我要在VS2015或者12打包,怎么弄,在线等急