I am not 100% percent sure that i am suppose to post this here, but it seems more appropriate than the Scripting section.Anyway…I am having an issue with EditorGUILayout.PopUp().So basically here is the main part of the issue:
string[] stringIndexes = new string[someList.arraySize];
for (int i = 0; i < list.arraySize; i++)
{
stringIndexes[i] = i.ToString();
}
removeIndex = EditorGUILayout.Popup(removeIndex, stringIndexes);
So EditorGUILayout.Popup() behaves ok overall, but when i remove an item from the list - removeIndex stays the same as from the last selected value even if the stringIndexes get updated.Isn’t it EditorGUILayout.Popup() suppose to update the removeIndex to whatever the size of the current array is?