mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
20 lines
424 B
C#
20 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;
|
|
}
|
|
}
|
|
}
|