UnityExplorer/src/Runtime/MonoHelper.cs
2022-02-24 19:26:01 +11:00

18 lines
434 B
C#

#if MONO
using UnityEngine;
namespace UnityExplorer.Runtime
{
public class MonoHelper : UERuntimeHelper
{
public override void SetupEvents()
{
Application.logMessageReceived += Application_logMessageReceived;
}
private void Application_logMessageReceived(string condition, string stackTrace, LogType type)
=> ExplorerCore.LogUnity(condition, type);
}
}
#endif