Update MA_TextureAtlasserProInspectorView.cs

Fix 2020.2+ mesh input fields.
This commit is contained in:
max committed 2021-04-08 23:51:05 +02:00
1 parent 0933abdace
commit 05b4ea9f80
1 file changed
+1
@@ -110,6 +110,7 @@ namespace MA_TextureAtlasserPro
SerializedProperty meshesSP = modelGroupsSP.GetArrayElementAtIndex(i).FindPropertyRelative("meshes");
#if UNITY_2020_2_OR_NEWER
meshesSP.isExpanded = EditorGUILayout.Foldout(meshesSP.isExpanded, "Meshes", true);
#else
EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f));
#endif