You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
409 B
20 lines
409 B
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; |
|
} |
|
} |
|
}
|
|
|