虚幻4 创建选择资源的UI

来源:互联网 发布:交互式视频制作软件 编辑:程序博客网 时间:2024/05/20 07:33
这就是选择资源的界面。

const bool bAllowClear = true;TArray<const UClass*> AllowedClasses;AllowedClasses.Add(AssetClassName::StaticClass());FAssetData CurrentAssetData;TSharedPtr<SWidget> AssetPickerWidget =  PropertyCustomizationHelpers::MakeAssetPickerWithMenu(CurrentAssetData,bAllowClear,AllowedClasses,PropertyCustomizationHelpers::GetNewAssetFactoriesForClasses(AllowedClasses),FOnShouldFilterAsset(),FOnAssetSelected::CreateSP(this, &SUIParticleEditorWindow::OnAssetSelected),FSimpleDelegate::CreateSP(this, &SUIParticleEditorWindow::CloseMenu));

0 0
原创粉丝点击