VR4RoboticArm2/VR4RoboticArm/Library/PackageCache/com.unity.timeline/Editor/Utilities/Scopes/IndentLevelScope.cs
IonutMocanu 48cccc22ad Main2
2025-09-08 11:13:29 +03: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;
}
}
}