Hi guys got small problem but can’t figure out how to concate properly inside unreal.
Basically I have a FName variable like this
FName name = *requiredComponent->GetName();
Which works fine howether I’ve been getting crashes whenc creating multiple things and after debugging I found out the reason for the crashes is because multiple objects can’t have the same name
There fore I need a way to add for example _01 , _02 etc after each name the same as what unreal does
So for example say I made 2 box collision components
First one would be name = boxCollisonComponent_01
Second would be name =boxCollisionComponent_02
But I can’t figure out how to do it.
I tried making an int that increases by 1 each time and convert that to a string and then append that to the FName variable but that didn’t work.