Hi, I am working with the chat example built in slate and I want to add something to it.
Considering the code below, I link the addresses from the string array with the array of pointers to show the values in a SListView, but after I clear Items2 array, I lose the Arr values and can’t rebuild it. Problem is that from the docs, I have to use TSharedPtr array for SListView. I need this to clear every time and build the list again if different values.
TArray<TSharedPtr<FString>> Items2;
TArray<FString> Arr;
...
Items2.Add(MakeShareable<FString>(&Arr[i]));
Items2.Empty();
Thankyou in advance!