mirror of
https://github.com/maxartz15/MA_TextureAtlasser.git
synced 2024-11-22 05:25:34 +01:00
Update MA_TextureAtlasserProInspectorView.cs
Fix 2020.2+ mesh input fields.
This commit is contained in:
parent
0933abdace
commit
05b4ea9f80
@ -110,6 +110,7 @@ namespace MA_TextureAtlasserPro
|
|||||||
|
|
||||||
SerializedProperty meshesSP = modelGroupsSP.GetArrayElementAtIndex(i).FindPropertyRelative("meshes");
|
SerializedProperty meshesSP = modelGroupsSP.GetArrayElementAtIndex(i).FindPropertyRelative("meshes");
|
||||||
#if UNITY_2020_2_OR_NEWER
|
#if UNITY_2020_2_OR_NEWER
|
||||||
|
meshesSP.isExpanded = EditorGUILayout.Foldout(meshesSP.isExpanded, "Meshes", true);
|
||||||
#else
|
#else
|
||||||
EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f));
|
EditorGUILayout.PropertyField(meshesSP, false, GUILayout.ExpandWidth(false), GUILayout.MaxWidth(editorViewRect.width * 0.5f));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user