diff --git a/Assets/MA_ToolBox/MA_TextureAtlasserPro/Scripts/Editor/Views/MA_TextureAtlasserProInspectorView.cs b/Assets/MA_ToolBox/MA_TextureAtlasserPro/Scripts/Editor/Views/MA_TextureAtlasserProInspectorView.cs index eab011e..985669d 100644 --- a/Assets/MA_ToolBox/MA_TextureAtlasserPro/Scripts/Editor/Views/MA_TextureAtlasserProInspectorView.cs +++ b/Assets/MA_ToolBox/MA_TextureAtlasserPro/Scripts/Editor/Views/MA_TextureAtlasserProInspectorView.cs @@ -109,9 +109,11 @@ namespace MA_TextureAtlasserPro } SerializedProperty meshesSP = modelGroupsSP.GetArrayElementAtIndex(i).FindPropertyRelative("meshes"); - EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f)); - - if (meshesSP.isExpanded) +#if UNITY_2020_2 +#else + EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f)); +#endif + if (meshesSP.isExpanded) { for (int j = 0; j < curWindow.textureAtlas.selectedTextureQuad.modelGroups[i].meshes.Count; j++) { @@ -131,8 +133,8 @@ namespace MA_TextureAtlasserPro { curWindow.textureAtlas.selectedTextureQuad.modelGroups[i].meshes.Add(null); } - } - } + } + } if (GUILayout.Button("+", EditorStyles.miniButton, GUILayout.ExpandWidth(true))) {