From 5d112a2cedc0ffc68be882ec145615090153525a Mon Sep 17 00:00:00 2001 From: max Date: Fri, 2 Apr 2021 17:31:24 +0200 Subject: [PATCH] Update MA_TextureAtlasserProInspectorView.cs Dirty fix for 2020.2+ versions with reordable list. --- .../Views/MA_TextureAtlasserProInspectorView.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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))) {