Very simple question maybe, but how do I call a function with parameters inside another function?
How do I call Download function in DownloadButtonClicked function?
void FDownloader::Download(FString File)
{
DownloadAsset->DownloadFile(File);
}
void FDownloaded::DownloadButtonClicked()
{
}
Just as-is: Download("filename");
.
Although you should definitely check out a C++ course instead
It’s possible that you are experiencing problems because of a typo. Line 6 “FDownloaded” rather than “FDownloader”
void FDownloader::Download(FString File)
{
DownloadAsset->DownloadFile(File);
}
void FDownloader::DownloadButtonClicked()
{
FString filename = "MyFileName";
Download(filename);
}
Bazzy2000
(Bazzy2000)
May 17, 2019, 10:05am
4
Ahh yes my function name was different. It was a stupid typo. Got it, thanks for pointing out :D.