Navigation
API > API/Plugins > API/Plugins/ModelingEditorUI > API/Plugins/ModelingEditorUI/ModelingWidgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SToolInputAssetComboPanel
References
| Module | ModelingEditorUI |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/ModelingEditorUI/Public/ModelingWidgets/SToolInputAssetComboPanel.h |
| Include | #include "ModelingWidgets/SToolInputAssetComboPanel.h" |
Syntax
class SToolInputAssetComboPanel : public SCompoundWidget
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ActiveCollectionSetIndex | ||
| UClass * | AssetClassType | ||
| TSharedPtr< FAssetThumbnail > | AssetThumbnail | ||
| TArray< FNamedCollectionList > | CollectionSets | ||
| TSharedPtr< SComboButton > | ComboButton | ||
| FVector2D | ComboButtonTileSize | ||
| FVector2D | FlyoutSize | ||
| FVector2D | FlyoutTileSize | ||
| FOnSelectedAssetChanged | OnSelectionChanged | Delegate to invoke when selection changes. | |
| TSharedPtr< IPropertyHandle > | Property | ||
| TArray< TSharedPtr< FRecentAssetInfo > > | RecentAssetData | ||
| TSharedPtr< IRecentAssetsProvider > | RecentAssetsProvider | ||
| TArray< TSharedPtr< FAssetThumbnail > > | RecentThumbnails | ||
| TArray< TSharedPtr< SBox > > | RecentThumbnailWidgets | ||
| TSharedPtr< SBorder > | ThumbnailBorder | ||
| TSharedPtr< FAssetThumbnailPool > | ThumbnailPool |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Construct this widget | |
| TSharedRef< SWidget > | MakeCollectionSetsButtonPanel
(
TSharedRef< SToolInputAssetPicker > AssetPickerView |
||
| void | NewAssetSelected
(
const FAssetData& AssetData |
||
| FReply | OnAssetThumbnailDoubleClick
(
const FGeometry& InMyGeometry, |
||
| TSharedRef< ITableRow > | OnGenerateWidgetForRecentList
(
TSharedPtr< FRecentAssetInfo > InItem, |
||
| void | |||
| void |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FNamedCollectionList | List of Collections with associated Name, used to provide pickable Collection filters | ||
| FRecentAssetInfo | |||
| 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 | Description |
|---|---|
| FOnSelectedAssetChanged |