@@ -1382,7 +1382,7 @@ internal static Rect GetInspectorTitleBarObjectFoldoutRenderRect(Rect rect)
13821382
13831383 internal static Rect GetInspectorTitleBarObjectFoldoutRenderRect ( Rect rect , GUIStyle baseStyle )
13841384 {
1385- return new Rect ( rect . x + EditorStyles . foldout . margin . left + 1f , rect . y + ( rect . height - kInspTitlebarFoldoutIconWidth ) / 2 + ( baseStyle != null ? baseStyle . padding . top : 0 ) , kInspTitlebarFoldoutIconWidth , kInspTitlebarFoldoutIconWidth ) ;
1385+ return new Rect ( rect . x + EditorStyles . titlebarFoldout . margin . left + 1f , rect . y + ( rect . height - kInspTitlebarFoldoutIconWidth ) / 2 + ( baseStyle != null ? baseStyle . padding . top : 0 ) , kInspTitlebarFoldoutIconWidth , kInspTitlebarFoldoutIconWidth ) ;
13861386 }
13871387
13881388 [ SuppressMessage ( "ReSharper" , "RedundantCast.0" ) ]
@@ -1551,7 +1551,7 @@ private static void DoObjectFoldoutInternal(bool foldout, Rect renderRect, int i
15511551 {
15521552 case EventType . Repaint :
15531553 bool isPressed = GUIUtility . hotControl == id ;
1554- EditorStyles . foldout . Draw ( renderRect , isPressed , isPressed , foldout , false ) ;
1554+ EditorStyles . titlebarFoldout . Draw ( renderRect , isPressed , isPressed , foldout , false ) ;
15551555 break ;
15561556 }
15571557
@@ -5200,7 +5200,7 @@ internal static bool ToggleTitlebar(Rect position, GUIContent label, bool foldou
52005200
52015201 GUIStyle baseStyle = EditorStyles . inspectorTitlebar ;
52025202 GUIStyle textStyle = EditorStyles . inspectorTitlebarText ;
5203- GUIStyle foldoutStyle = EditorStyles . foldout ;
5203+ GUIStyle foldoutStyle = EditorStyles . titlebarFoldout ;
52045204
52055205 Rect toggleRect = new Rect ( position . x + baseStyle . padding . left , position . y + baseStyle . padding . top , kInspTitlebarIconWidth , kInspTitlebarIconWidth ) ;
52065206 Rect textRect = new Rect ( toggleRect . xMax + kInspTitlebarSpacing , toggleRect . y , 200 , kInspTitlebarIconWidth ) ;
@@ -5248,7 +5248,7 @@ internal static bool FoldoutTitlebar(Rect position, GUIContent label, bool foldo
52485248
52495249 break ;
52505250 case EventType . Repaint :
5251- GUIStyle foldoutStyle = EditorStyles . foldout ;
5251+ GUIStyle foldoutStyle = EditorStyles . titlebarFoldout ;
52525252 Rect textRect =
52535253 new Rect (
52545254 position . x + baseStyle . padding . left +
0 commit comments