File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Assets/Editor Toolbox/Editor/Internal Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -316,9 +316,15 @@ static Style()
316
316
toolbarStyle = new GUIStyle ( EditorStyles . toolbar ) ;
317
317
scrollbarStyle = new GUIStyle ( GUI . skin . verticalScrollbar ) ;
318
318
selectionStyle = new GUIStyle ( "SelectionRect" ) ;
319
+ #if UNITY_2022_1_OR_NEWER
320
+ searchBoxStyle = new GUIStyle ( "ToolbarSearchTextField" ) ;
321
+ showCancelButtonStyle = new GUIStyle ( "ToolbarSearchCancelButton" ) ;
322
+ hideCancelButtonStyle = new GUIStyle ( "ToolbarSearchCancelButtonEmpty" ) ;
323
+ #else
319
324
searchBoxStyle = new GUIStyle ( "ToolbarSeachTextField" ) ;
320
325
showCancelButtonStyle = new GUIStyle ( "ToolbarSeachCancelButton" ) ;
321
326
hideCancelButtonStyle = new GUIStyle ( "ToolbarSeachCancelButtonEmpty" ) ;
327
+ #endif
322
328
}
323
329
}
324
330
}
You can’t perform that action at this time.
0 commit comments