You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Give a clearer title to the dialog opened when creating a Data Layer Instance
" Pick Data Layer Asset" dialog now remmembers the last path where a data layer was picked #rb richard.malo #preflight 6231ec3d8a603798938ed041 #ROBOMERGE-AUTHOR: philippe.deseve #ROBOMERGE-SOURCE: CL 19406125 via CL 19406127 #ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884) [CL 19407000 by philippe deseve in ue5-main branch]
This commit is contained in:
@@ -1112,11 +1112,14 @@ bool UDataLayerEditorSubsystem::PromptDataLayerAssetSelection(FAssetData& OutAss
|
||||
FOpenAssetDialogConfig Config;
|
||||
Config.bAllowMultipleSelection = false;
|
||||
Config.AssetClassNames.Add(UDataLayerAsset::StaticClass()->GetFName());
|
||||
Config.DefaultPath = PickDataLayerDialogPath;
|
||||
Config.DialogTitleOverride = LOCTEXT("PickDataLayerAssetDialogTitle", "Pick A Data Layer Asset");
|
||||
|
||||
TArray<FAssetData> Assets = ContentBrowserSingleton.CreateModalOpenAssetDialog(Config);
|
||||
if (Assets.Num() == 1)
|
||||
{
|
||||
OutAsset = Assets[0];
|
||||
OutAsset.PackagePath.ToString(PickDataLayerDialogPath);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -662,5 +662,8 @@ private:
|
||||
/** Delegate used to notify changes to ActorEditorContextSubsystem */
|
||||
FOnActorEditorContextClientChanged ActorEditorContextClientChanged;
|
||||
|
||||
/** The path at which the "Pick A Data Layer Asset" will be opened*/
|
||||
mutable FString PickDataLayerDialogPath;
|
||||
|
||||
friend class FDataLayersBroadcast;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user