arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.timeline@6b9e48457ddb/Editor/Utilities/Scopes/IndentLevelScope.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02: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;
}
}
}