Hi i just got done with the BullCows game on the Unreal course and would love to duplicate the sign and print out all of my guesses on that sign, I think you would have to store the guesses in a TArray but im not to sure. Any advice would be helpful! Thanks!
Create a member variable TArray<FString>
and use Emplace
on the Guess where you want it to be added.
For printing you can use FString::Join
which takes a range and a string for the separator e.g.
TArray<FString> Names{ TEXT("Bob"), TEXT("Bill"), TEXT("Jim") };
FString ListOfNames = FString::Join(Names, TEXT(", "));
ListOfNames
should be “Bob, Bill, Jim” which you can then print with PrintLine
.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.