Files
Test-Multiplayer/Library/PackageCache/com.unity.collab-proxy@1e5e48aff19d/Editor/UI/GuiEnabled.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02:00

23 lines
393 B
C#

using System;
using UnityEngine;
namespace Unity.PlasticSCM.Editor.UI
{
internal class GuiEnabled : IDisposable
{
internal GuiEnabled(bool enabled)
{
mEnabled = GUI.enabled;
GUI.enabled = enabled && mEnabled;
}
void IDisposable.Dispose()
{
GUI.enabled = mEnabled;
}
bool mEnabled;
}
}