SAssetPickerButton

A widget which allows the user to pick a name of a specified list of names.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

DMXEditor

Header

/Engine/Plugins/Experimental/DigitalMultiplex/DMXEngine/Source/DMXEditor/Public/Widgets/SAssetPickerButton.h

Include

#include "Widgets/SAssetPickerButton.h"

Syntax

class SAssetPickerButton : public SCompoundWidget

Remarks

A widget which allows the user to pick a name of a specified list of names.

Variables

Name Description

Public variable

TArray< FName >

 

AllowedClasses

Allows more than a single class. Overrides AssetClass

Public variable

TWeakObjectPtr<...

 

AssetClass

The class to filter the list of assets in the picker menu

Protected variable

TSharedPtr< cla...

 

AssetPickerAnchor

Menu anchor for opening and closing the asset picker

Protected variable

TSharedPtr< SBu...

 

BrowseButton

Protected variable

FAssetData

 

CachedAssetData

Cached AssetData of object selected

Protected variable

TAttribute< TWe...

 

CurrentAssetValue

The current asset selected, to display its name

Public variable

TArray< FName >

 

DisallowedClasses

Disallows subclasses from the allowed asset class(es)

Protected variable

FOnAssetSelecte...

 

OnAssetSelected

Broadcast when a new asset is selected

Protected variable

FOnParentIsHove...

 

OnParentIsHovered

Broadcast when defining hovered state, to use the parent interact able area

Protected variable

TSharedPtr< SBu...

 

UseButton

Object manipulator buttons.

Functions

Name Description

Protected function Virtual Const

bool

 

AllowSelfPinWidget()

Allow self pin widget

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Protected function Virtual

TSharedRef< ...

 

GenerateAssetPicker()

Generate asset picker window

Protected function Virtual Const

const FAsset...

 

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

Protected function Virtual Const

FText

 

GetDefaultComboText()

Get default text for the picker combo

Protected function Const

bool

 

GetIsParentHovered()

Returns whether the parent widget is hovered to use it's area for hovered state

Protected function Const

FText

 

GetObjectToolTip()

Get text tooltip for object

Protected function

void

 

OnAssetEnterPressedInPicker

(
    const TArray< FAssetData >& InSele...
)

Called when enter is pressed when items are selected in the picker window

Protected function Virtual

void

 

OnAssetSelectedFromPicker

(
    const FAssetData& AssetData
)

Called to validate selection from picker window

Protected function Virtual

FReply

 

OnClickBrowse()

Clicked Browse button

Protected function Virtual

FReply

 

OnClickUse()

Clicked Use button

Protected function Const

FSlateColor

 

OnGetComboForeground()

Combo Button Color and Opacity delegate

Protected function Const

FText

 

OnGetComboTextValue()

Used to update the combo button text

Protected function Const

FSlateColor

 

OnGetWidgetBackground()

Button Color and Opacity delegate

Protected function Const

FSlateColor

 

OnGetWidgetForeground()

Button Color and Opacity delegate

Classes

Name

Description

Public struct

FArguments

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss