Navigation
API > API/Plugins > API/Plugins/DMXEditor
A widget which allows the user to pick a name of a specified list of names.
| Name | SAssetPickerButton |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/DMX/DMXEngine/Source/DMXEditor/Public/Widgets/SAssetPickerButton.h |
| Include Path | #include "Widgets/SAssetPickerButton.h" |
Syntax
class SAssetPickerButton : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SAssetPickerButton
- FSlateControlledConstruction → SWidget → SCompoundWidget → SAssetPickerButton
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowedClasses | TArray< FTopLevelAssetPath > | Allows more than a single class. Overrides AssetClass | Widgets/SAssetPickerButton.h | |
| AssetClass | TWeakObjectPtr< UClass > | The class to filter the list of assets in the picker menu | Widgets/SAssetPickerButton.h | |
| DisallowedClasses | TArray< FTopLevelAssetPath > | Disallows subclasses from the allowed asset class(es) | Widgets/SAssetPickerButton.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Widgets/SAssetPickerButton.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowSelfPinWidget() |
Allow self pin widget | Widgets/SAssetPickerButton.h | |
virtual TSharedRef< SWidget > GenerateAssetPicker() |
Generate asset picker window | Widgets/SAssetPickerButton.h | |
virtual const FAssetData & GetAssetData() |
Returns asset data of currently selected object, if bRuntimePath is true this will include _C for blueprint classes, for false it will point to UBlueprint instead | Widgets/SAssetPickerButton.h | |
virtual FText GetDefaultComboText() |
Get default text for the picker combo | Widgets/SAssetPickerButton.h | |
bool GetIsParentHovered() |
Returns whether the parent widget is hovered to use it's area for hovered state | Widgets/SAssetPickerButton.h | |
FText GetObjectToolTip() |
Get text tooltip for object | Widgets/SAssetPickerButton.h | |
void OnAssetEnterPressedInPicker
(
const TArray< FAssetData >& InSelectedAssets |
Called when enter is pressed when items are selected in the picker window | Widgets/SAssetPickerButton.h | |
virtual void OnAssetSelectedFromPicker
(
const FAssetData& AssetData |
Called to validate selection from picker window | Widgets/SAssetPickerButton.h | |
virtual FReply OnClickBrowse() |
Clicked Browse button | Widgets/SAssetPickerButton.h | |
virtual FReply OnClickUse() |
Clicked Use button | Widgets/SAssetPickerButton.h | |
FSlateColor OnGetComboForeground() |
Combo Button Color and Opacity delegate | Widgets/SAssetPickerButton.h | |
FText OnGetComboTextValue() |
Used to update the combo button text | Widgets/SAssetPickerButton.h | |
FSlateColor OnGetWidgetBackground() |
Button Color and Opacity delegate | Widgets/SAssetPickerButton.h | |
FSlateColor OnGetWidgetForeground() |
Button Color and Opacity delegate | Widgets/SAssetPickerButton.h |