I still don’t know, what caused the problem, but now I rewrote the code usind NewObject into OnConstruction(), so I don’t need a name Is it fine to use the same name for multiple objects, because Im creating multiple meshes in a for loop?
Commenting if anyone wonders about this:
It doesn’t complain because char* + int only offsets the char pointer, so “MeshStair” + 1 = “eshStair”, “MeshStair” + 4 = “Stair” etc. If your i reaches the amount of characters in “MeshStair”(9) you will end up with an empty string. If your i reaches beyond that you will get random data in your string.