Files
CartoonFPS/Library/PackageCache/com.unity.timeline@c58b4ee65782/Editor/Utilities/Scopes/IndentLevelScope.cs
SHOUTING_PIRATE 4c8592d0ab initial commit
2025-08-05 09:30:40 +01: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;
}
}
}