Files
TowerDefence/My project/Library/PackageCache/com.unity.collab-proxy@3351acaba9c9/Editor/UI/CheckUnityException.cs
Caleb Sandford deQuincey 334021d04e Started project
2025-11-14 17:30:41 +00:00

24 lines
554 B
C#

using System;
using UnityEngine;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class CheckUnityException
{
internal static bool IsExitGUIException(Exception ex)
{
return ex is ExitGUIException;
}
internal static bool IsIMGUIPaintException(Exception ex)
{
if (!(ex is ArgumentException))
return false;
return ex.Message.StartsWith("Getting control") &&
ex.Message.Contains("controls when doing repaint");
}
}
}