File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ public abstract class ExportOptionsEditorWindow : EditorWindow
41
41
protected float m_fbxExtLabelWidth ;
42
42
43
43
protected virtual void OnEnable ( ) {
44
- InitializeReceiver ( ) ;
44
+ if ( Application . unityVersion . Contains ( "2018" ) ) {
45
+ InitializeReceiver ( ) ;
46
+ }
45
47
m_showOptions = true ;
46
48
this . minSize = new Vector2 ( SelectableLabelMinWidth + LabelWidth + BrowseButtonWidth , MinWindowHeight ) ;
47
49
@@ -123,12 +125,14 @@ protected void OnGUI ()
123
125
// Increasing the label width so that none of the text gets cut off
124
126
EditorGUIUtility . labelWidth = LabelWidth ;
125
127
126
- GUILayout . BeginHorizontal ( ) ;
127
- GUILayout . FlexibleSpace ( ) ;
128
- if ( EditorGUILayout . DropdownButton ( presetIcon , FocusType . Keyboard , presetIconButton ) ) {
129
- ShowPresetReceiver ( ) ;
128
+ if ( Application . unityVersion . Contains ( "2018" ) ) {
129
+ GUILayout . BeginHorizontal ( ) ;
130
+ GUILayout . FlexibleSpace ( ) ;
131
+ if ( EditorGUILayout . DropdownButton ( presetIcon , FocusType . Keyboard , presetIconButton ) ) {
132
+ ShowPresetReceiver ( ) ;
133
+ }
134
+ GUILayout . EndHorizontal ( ) ;
130
135
}
131
- GUILayout . EndHorizontal ( ) ;
132
136
133
137
EditorGUILayout . LabelField ( "Naming" ) ;
134
138
EditorGUI . indentLevel ++ ;
You can’t perform that action at this time.
0 commit comments