2021
04-27
04-27
如何保存Unity中的Log日志
代码中的debug日志保存本地usingSystem.Collections;usingUnityEngine;usingSystem.IO;publicclassSaveLog:MonoBehaviour{privatefloatlength;Queuequeue;privatevoidAwake(){DontDestroyOnLoad(this);LogToFile("Versionoftheruntime:"+Application.unityVersion,true,false);Application.logMessageReceivedThreaded+=OnReceiveLogMsg;queue=newQue...
继续阅读 >