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.
20 lines
424 B
20 lines
424 B
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; |
|
} |
|
} |
|
}
|
|
|