Navigation
API > API/Plugins > API/Plugins/ModelingEditorUI
SToolInputAssetPicker is designed to support Asset picking in Modeling Tools, where the Assets in question are input parameters/options to Tools, eg such as a brush alpha texture for use in a Painting/Sculpting Tool.
Implementation is derived from SAssetPicker (private class in the ContentBrowser module). However many optional features have been stripped out as they are not relevant in the Modeling-Tool Parameters context.
Most settings are provided via the FAssetPickerConfig, which is passed to an SAssetView internally.
Unless you are really certain you need to use this class directly, it's likely that you are looking for SToolInputAssetComboPanel, which provides a combobox/flyout-style widget suitable for user interface panels.
| Name | SToolInputAssetPicker |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/ModelingEditorUI/Public/ModelingWidgets/SToolInputAssetPicker.h |
| Include Path | #include "ModelingWidgets/SToolInputAssetPicker.h" |
Syntax
class SToolInputAssetPicker : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SToolInputAssetPicker
- FSlateControlledConstruction → SWidget → SCompoundWidget → SToolInputAssetPicker
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~SToolInputAssetPicker() |
ModelingWidgets/SToolInputAssetPicker.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetViewPtr | TSharedPtr< SAssetView > | The asset view widget | ModelingWidgets/SToolInputAssetPicker.h | |
| bPendingFocusNextFrame | bool | True if the search box will take keyboard focus next frame | ModelingWidgets/SToolInputAssetPicker.h | |
| CurrentBackendFilter | FARFilter | Current filter we are using, needed reset asset view after we have custom filtered | ModelingWidgets/SToolInputAssetPicker.h | |
| CurrentContentSources | FAssetViewContentSources | The sources data currently used by the picker | ModelingWidgets/SToolInputAssetPicker.h | |
| DefaultFilterMenuExpansion | EAssetTypeCategories::Type | ModelingWidgets/SToolInputAssetPicker.h | ||
| FilterCollection | TSharedPtr< FAssetFilterCollectionType > | Filters needed for filtering the assets | ModelingWidgets/SToolInputAssetPicker.h | |
| FrontendFilters | TSharedPtr< FAssetFilterCollectionType > | The list of FrontendFilters currently applied to the asset view | ModelingWidgets/SToolInputAssetPicker.h | |
| OnAssetEnterPressed | FOnAssetEnterPressed | Called when enter is pressed while an asset is selected | ModelingWidgets/SToolInputAssetPicker.h | |
| OnAssetsActivated | FOnAssetsActivated | Called when any number of assets are activated | ModelingWidgets/SToolInputAssetPicker.h | |
| OnAssetSelected | FOnAssetSelected | Called to when an asset is selected or the none button is pressed | ModelingWidgets/SToolInputAssetPicker.h | |
| SearchBoxPtr | TSharedPtr< SAssetSearchBox > | The search box | ModelingWidgets/SToolInputAssetPicker.h | |
| TextFilter | TSharedPtr< FAssetTextFilter > | ModelingWidgets/SToolInputAssetPicker.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Constructs this widget with InArgs | ModelingWidgets/SToolInputAssetPicker.h | |
const TSharedPtr< SAssetView > & GetAssetView() |
Return the associated AssetView | ModelingWidgets/SToolInputAssetPicker.h | |
virtual FReply OnKeyDown
(
const FGeometry& MyGeometry, |
SWidget implementation. | ModelingWidgets/SToolInputAssetPicker.h | |
virtual void UpdateAssetSourceCollections
(
TArray< FCollectionRef > Collections |
Update the set of input Assets to be only based on the given set of Collections (or all Assets, if the Collections list is empty) | ModelingWidgets/SToolInputAssetPicker.h | |
virtual void UpdateAssetSourceCollections
(
TArray< FCollectionNameType > Collections |
ModelingWidgets/SToolInputAssetPicker.h |