暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

GUIMixedValueScope.cs 424B

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