No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GuiEnabled.cs 393B

12345678910111213141516171819202122
  1. using System;
  2. using UnityEngine;
  3. namespace Unity.PlasticSCM.Editor.UI
  4. {
  5. internal class GuiEnabled : IDisposable
  6. {
  7. internal GuiEnabled(bool enabled)
  8. {
  9. mEnabled = GUI.enabled;
  10. GUI.enabled = enabled && mEnabled;
  11. }
  12. void IDisposable.Dispose()
  13. {
  14. GUI.enabled = mEnabled;
  15. }
  16. bool mEnabled;
  17. }
  18. }