BITKit/Packages/Runtime/Debuger/ShowException.cs

22 lines
558 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Cysharp.Threading.Tasks;
namespace BITKit
{
public class ShowException : Provider<Exception>
{
public Provider stringOutput;
public string message;
public override Exception Get()
{
throw new NotImplementedException();
}
public override async void Set(Exception t)
{
await UniTask.SwitchToMainThread();
stringOutput.Set(message = t.Message);
}
}
}