Download LyraStarterGame/Source/LyraGame/System/LyraAssetManagerStartupJob.cpp from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 845 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/System/LyraAssetManagerStartupJob.cpp
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/System/LyraAssetManagerStartupJob.cpp
-
curl -L -o LyraAssetManagerStartupJob.cpp https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/System/LyraAssetManagerStartupJob.cpp
845 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| TSharedPtr<FStreamableHandle> FLyraAssetManagerStartupJob::DoJob() const | |
| { | |
| const double JobStartTime = FPlatformTime::Seconds(); | |
| TSharedPtr<FStreamableHandle> Handle; | |
| UE_LOG(LogLyra, Display, TEXT("Startup job \"%s\" starting"), *JobName); | |
| JobFunc(*this, Handle); | |
| if (Handle.IsValid()) | |
| { | |
| Handle->BindUpdateDelegate(FStreamableUpdateDelegate::CreateRaw(this, &FLyraAssetManagerStartupJob::UpdateSubstepProgressFromStreamable)); | |
| Handle->WaitUntilComplete(0.0f, false); | |
| Handle->BindUpdateDelegate(FStreamableUpdateDelegate()); | |
| } | |
| UE_LOG(LogLyra, Display, TEXT("Startup job \"%s\" took %.2f seconds to complete"), *JobName, FPlatformTime::Seconds() - JobStartTime); | |
| return Handle; | |
| } | |