Firstborn/Library/PackageCache/com.unity.timeline@1.7.1/Editor/Utilities/Scopes/IndentLevelScope.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

21 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;
}
}
}