GlobalGameJame/Library/PackageCache/com.unity.timeline@1.2.10/Editor/Utilities/GUIMixedValueScope.cs
JonatanRek bea2dce063 Initial
test
2020-01-31 16:10:04 +01:00

21 lines
424 B
C#

using System;
using UnityEngine;
namespace UnityEditor
{
struct GUIMixedValueScope : IDisposable
{
readonly bool m_PrevValue;
public GUIMixedValueScope(bool newValue)
{
m_PrevValue = EditorGUI.showMixedValue;
EditorGUI.showMixedValue = newValue;
}
public void Dispose()
{
EditorGUI.showMixedValue = m_PrevValue;
}
}
}