I’m attempting to ignore the first character in an FString that I am printing to the screen using RemoveAt(0,1,true). My code snippet
// Parse data here
FString ReceivedString = StringFromBinaryArray(ReceivedData); // StringFromBinaryArray function returning FString with input ReceivedData
GEngine->AddOnScreenDebugMessage(0, 30.f, FColor::Black, FString::Printf(TEXT("Y Location: %s"), *ReceivedString));
FString PosString = ReceivedString.RemoveAt(0, 1, true);
GEngine->AddOnScreenDebugMessage(0, 30.f, FColor::Black, FString::Printf(TEXT("Y Location: %s"), PosString));
And Intellisense returns the error: “No suitable constructor exists to convert from ‘void’ to ‘FString’” with the red line underneath ReceivedString.RemoveAt. Any ideas on what I should do differently?
About AddOnScreenDebugMessage(), it’s fine when you are in editor, but when you run stand alone it may crash, and you end up doing “if (GEngine() != nullpointer) {//run code}” and it just gets messy fast.