File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Editor/IMGUI/SettingsWindow Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,13 @@ void OnLayoutEnable()
136136 {
137137 foreach ( var layout in m_TabsLayout ) layout . OnLayoutEnable ( ) ;
138138
139+ #if UNITY_2021_3_OR_NEWER
140+ m_ToolbarSearchTextFieldStyle = GUI . skin . FindStyle ( "ToolbarSearchTextField" ) ;
141+ m_ToolbarSearchCancelButtonStyle = GUI . skin . FindStyle ( "ToolbarSearchCancelButton" ) ;
142+ #else
139143 m_ToolbarSearchTextFieldStyle = GUI . skin . FindStyle ( "ToolbarSeachTextField" ) ;
140144 m_ToolbarSearchCancelButtonStyle = GUI . skin . FindStyle ( "ToolbarSeachCancelButton" ) ;
145+ #endif
141146
142147 m_DocumentationLink = new IMGUIHyperLabel ( new GUIContent ( "Go To Documentation" ) , EditorStyles . miniLabel ) ;
143148 m_DocumentationLink . SetMouseOverColor ( SettingsWindowStyles . SelectedElementColor ) ;
You can’t perform that action at this time.
0 commit comments