How can I filter specific UObject/UBlueprint, I can find my “UInstantDialogueConditionObject” when I do this (Picture 1)
UClass* AllowedClass = UObject::StaticClass();
FAssetPickerConfig AssetPickerConfig;
AssetPickerConfig.Filter.ClassNames.Add(AllowedClass->GetFName());
AssetPickerConfig.Filter.bIncludeOnlyOnDiskAssets = false;
AssetPickerConfig.Filter.bRecursivePaths = true;
AssetPickerConfig.Filter.bRecursiveClasses = true;
AssetPickerConfig.OnAssetSelected = FOnAssetSelected::CreateSP(this, &SEdNode_Text::OnAssetSelectedFromPicker);
return
SNew(SBox)
.HeightOverride(300)
.WidthOverride(300)
[
SNew(SBorder)
.BorderImage( FEditorStyle::GetBrush("Menu.Background") )
[
ContentBrowserModule.Get().CreateAssetPicker(AssetPickerConfig)
]
];
but if I change the first line from
UClass* AllowedClass = UObject::StaticClass();
to
UClass* AllowedClass = UInstantDialogueConditionObject::StaticClass();
I can’t find it anymore (Picture 2)