Update MA_TextureAtlasserProInspectorView.cs

Dirty fix for 2020.2+ versions with reordable list.
This commit is contained in:
max 2021-04-02 17:31:24 +02:00
parent 650600fac3
commit 5d112a2ced

View File

@ -109,8 +109,10 @@ namespace MA_TextureAtlasserPro
}
SerializedProperty meshesSP = modelGroupsSP.GetArrayElementAtIndex(i).FindPropertyRelative("meshes");
#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++)