Ei kuvausta
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.

IndentLevelScope.cs 409B

1234567891011121314151617181920
  1. using System;
  2. namespace UnityEditor.Timeline
  3. {
  4. readonly struct IndentLevelScope : IDisposable
  5. {
  6. readonly int m_PrevValue;
  7. public IndentLevelScope(int newValue)
  8. {
  9. m_PrevValue = EditorGUI.indentLevel;
  10. EditorGUI.indentLevel = newValue;
  11. }
  12. public void Dispose()
  13. {
  14. EditorGUI.indentLevel = m_PrevValue;
  15. }
  16. }
  17. }