mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-19 07:17:56 +08:00
18 lines
434 B
C#
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 |