ZMWSLI0-SL2021-GR11/cw1/clock/Library/PackageCache/com.unity.timeline@1.2.18/Editor/Utilities/GUIMixedValueScope.cs

21 lines
424 B
C#
Raw Normal View History

2021-04-10 17:27:42 +02:00
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;
}
}
}