 {
     LineEdit@ nameEdit = eventData["Element"].GetPtr();
     int index = nameEdit.vars["Index"].GetUInt();
-    String resourceName = nameEdit.text;
-    spawnedObjectsNames[index] = VerifySpawnedObjectFile(resourceName);
-    RefreshPickedObjects();
+    String resourceName = VerifySpawnedObjectFile(nameEdit.text);
+    nameEdit.text = resourceName;
+    spawnedObjectsNames[index] = resourceName;
 }
 
 String VerifySpawnedObjectFile(const String&in resourceName)

        }
    }
}


    SubscribeToEvent(uiFileSelector, "FileSelected", "PickSpawnObjectDone");
}

void EditRandomRotation(StringHash eventType, VariantMap& eventData)
{
    LineEdit@ edit = eventData["Element"].GetPtr();
