UnityExplorer/src/Runtime/MonoHelper.cs

18 lines
434 B
C#
Raw Normal View History

2021-12-02 18:35:46 +11:00
#if MONO
using UnityEngine;
namespace UnityExplorer.Runtime
2021-12-02 18:35:46 +11:00
{
2022-01-31 21:24:01 +11:00
public class MonoHelper : UERuntimeHelper
2021-12-02 18:35:46 +11:00
{
public override void SetupEvents()
{
Application.logMessageReceived += Application_logMessageReceived;
}
private void Application_logMessageReceived(string condition, string stackTrace, LogType type)
=> ExplorerCore.LogUnity(condition, type);
}
}
#endif