一般先跳转到一个临时的关卡,然后异步加载目标关卡,同时展示Loading界面 对于含有流关卡的目标关卡,可以先载入子关卡 蓝图异步加载 无进度条 LoadPackageAsync bool bIsLoaded; UPROPERTY() FString LoadPackagePath; // 用于加载完成的回调 DECLARE_DYNAMIC_DELEGATE(FOnAsyncLoadFinished); UFUNCTION(BlueprintCallable) ...
//开始异步加载voidALoadActor::MyAsyncLoad(constFOnAsyncLoadFinished& OnAsyncLoadFinished){//不使用GetBaseFilename,编译 error C4458: LoadPackageAsync failed to begin to load a package···LoadPackagePath = FPaths::GetBaseFilename(LoadPackageSoftObjectPath.ToString(),false); bIsLoaded =false;UE_LO...
【UE4】异步加载关卡LoadingScreen(蓝图和C++)⼀般先跳转到⼀个临时的关卡,然后异步加载⽬标关卡,同时展⽰Loading界⾯ 对于含有流关卡的⽬标关卡,可以先载⼊⼦关卡 蓝图异步加载 ⽆进度条 C++ 异步加载关卡 LoadPackageAsync bool bIsLoaded;UPROPERTY()FString LoadPackagePath;// ⽤于加载完成的...