Navigation
API > API/Plugins > API/Plugins/ModelingEditorUI
SToolInputAssetComboPanel provides a similar UI to SComboPanel but specifically for picking Assets. The standard widget is a SComboButton that displays a thumbnail of the selected Asset, and on click a flyout panel is shown that has an Asset Picker tile view, as well as (optionally) a list of recently-used Assets, and also Collection-based filters.
Drag-and-drop onto the SComboButton is also supported, and the "selected Asset" can be mapped to/from a PropertyHandle. However note that a PropertyHandle is not required, each time the selection is modified the OnSelectionChanged(AssetData) delegate will also fire.
Note that "No Selection" is valid option by default
| Name | SToolInputAssetComboPanel |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/ModelingEditorUI/Public/ModelingWidgets/SToolInputAssetComboPanel.h |
| Include Path | #include "ModelingWidgets/SToolInputAssetComboPanel.h" |
Syntax
class SToolInputAssetComboPanel : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SToolInputAssetComboPanel
- FSlateControlledConstruction → SWidget → SCompoundWidget → SToolInputAssetComboPanel
Structs
| Name | Remarks |
|---|---|
| FArguments | |
| FNamedCollectionList | List of Collections with associated Name, used to provide pickable Collection filters |
| FRecentAssetInfo |
Interfaces
| Name | Remarks |
|---|---|
| IRecentAssetsProvider | IRecentAssetsProvider allows the Client to specify a set of "recently-used" Assets which the SToolInputAssetComboPanel will try to update as the selected Asset changes |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnSelectedAssetChanged | TBaseDelegate_OneParam< void, const FAssetData &AssetData > | ModelingWidgets/SToolInputAssetComboPanel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct this widget | ModelingWidgets/SToolInputAssetComboPanel.h | |
void RefreshThumbnail
(
const FAssetData& InAssetData |
Refresh the thumbnail using provided AssetData, for cases where Property may not be available | ModelingWidgets/SToolInputAssetComboPanel.h | |
void RefreshThumbnailFromProperty() |
Refresh the thumbnail using the AssetComboPanel's Property | ModelingWidgets/SToolInputAssetComboPanel.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< SWidget > MakeCollectionSetsButtonPanel
(
TSharedRef< SToolInputAssetPicker > AssetPickerView |
ModelingWidgets/SToolInputAssetComboPanel.h | ||
virtual void NewAssetSelected
(
const FAssetData& AssetData |
ModelingWidgets/SToolInputAssetComboPanel.h | ||
virtual FReply OnAssetThumbnailDoubleClick
(
const FGeometry& InMyGeometry, |
ModelingWidgets/SToolInputAssetComboPanel.h | ||
TSharedRef< ITableRow > OnGenerateWidgetForRecentList
(
TSharedPtr< FRecentAssetInfo > InItem, |
ModelingWidgets/SToolInputAssetComboPanel.h | ||
void UpdateRecentAssets() |
ModelingWidgets/SToolInputAssetComboPanel.h |