polygone/Library/PackageCache/com.unity.timeline@1.5.4/Editor/Utilities/Scopes/IndentLevelScope.cs
2021-08-02 05:44:37 -04:00

20 lines
409 B
C#

using System;
namespace UnityEditor.Timeline
{
readonly struct IndentLevelScope : IDisposable
{
readonly int m_PrevValue;
public IndentLevelScope(int newValue)
{
m_PrevValue = EditorGUI.indentLevel;
EditorGUI.indentLevel = newValue;
}
public void Dispose()
{
EditorGUI.indentLevel = m_PrevValue;
}
}
}