WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Tests/Runtime/IgnoreFailingLogMessage.cs
2025-01-07 02:06:59 +01:00

21 lines
521 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.TestTools;
public class IgnoreFailingLogMessage : IDisposable
{
private bool m_SavedIgnoreFailingMessagesFlag;
public IgnoreFailingLogMessage()
{
m_SavedIgnoreFailingMessagesFlag = LogAssert.ignoreFailingMessages;
LogAssert.ignoreFailingMessages = true;
}
public void Dispose()
{
LogAssert.ignoreFailingMessages = m_SavedIgnoreFailingMessagesFlag;
}
}