SAssetView

A widget to display a list of filtered assets

Unreal Engine C++ API Reference > Editor > ContentBrowser

Inheritance Hierarchy

References

   
Module ContentBrowser
Header /Engine/Source/Editor/ContentBrowser/Public/SAssetView.h
Include #include "SAssetView.h"

Syntax

class SAssetView : public [SCompoundWidget](API\Runtime\SlateCore\Widgets\SCompoundWidget)  

Remarks

A widget to display a list of filtered assets

Destructors

Type Name Description
  ~SAssetView ()  

Functions

Type Name Description
void AdjustActiveSelection ( int32 SelectionDelta ) Adjusts the selected asset by the selection delta, which should be +1 or -1)
void ApplyHistoryData ( const FHistoryData& History ) Sets the state of the asset view to the one described by the history data
void ClearSelection ( bool bForceSilent ) Clears the selection of all the lists in the view
void Construct ( const FArguments& InArgs ) Constructs this widget with InArgs
void CreateNewAsset ( const FString& DefaultAssetName, const FString& PackagePath, UClass* AssetClass, UFactory* Factory ) Creates a new asset item designed to allocate a new object once it is named.
void ForceShowPluginFolder ( bool bEnginePlugin ) Forces the plugin content folder to be shown.
FText GetAssetCountText () Gets the text for the asset count label
const FARFil... GetBackendFilter () Get the current backend filter
TArray< FAss... GetSelectedAssets () Returns all the asset data objects in items currently selected in the view
TArray< FCon... GetSelectedFileItems () Returns all the file items currently selected in the view
TArray< FCon... GetSelectedFolderItems () Returns all the folder items currently selected in the view
TArray< FStr... GetSelectedFolders () Returns all the folders currently selected in the view
TArray< FCon... GetSelectedItems () Returns all the items currently selected in the view
TArray< TSha... GetSelectedViewItems () Returns all the items currently selected in the view
const FSourc... GetSourcesData () Returns the sources filter applied to this asset view
TSharedRef< ... GetViewButtonContent () Handler for when the view combo button is clicked
void HandleSettingChanged ( FName PropertyName ) Delegate called when an editor setting is changed
bool IsAssetPathSelected () Returns true if a real asset path is selected (i.e * or *)
bool IsIncludingAssetPaths ()  
bool IsIncludingClassNames ()  
bool IsIncludingCollectionNames ()  
bool IsRenamingAsset () Returns true if an asset is currently in the process of being renamed
bool IsThumbnailEditMode () Returns true if the asset view is in thumbnail editing mode
void LoadSettings ( const FString& IniFilename, const FString& IniSection, const FString& SettingsString ) Loads any settings to config that should be persistent between editor sessions
void NewFileItemRequested ( const FContentBrowserItemDataTempor... ) Handler for when a data source requests file item creation
void NewFolderItemRequested ( const FContentBrowserItemTemporaryC... ) Handler for when a data source requests folder item creation
void OnOpenAssetsOrFolders () Opens the selected assets or folders, depending on the selection
void OnPreviewAssets () Loads the selected assets and previews them if possible
void OverrideShowDeveloperContent () Enables the Show Developer Content setting for the active Content Browser.
void OverrideShowEngineContent () Enables the Show Engine Content setting for the active Content Browser.
void OverrideShowLocalizedContent () Enables the Show Localized Content setting for the active Content Browser.
void OverrideShowPluginContent () Enables the Show Plugin Content setting for the active Content Browser.
void RenameItem ( const FContentBrowserItem& ItemToR... ) Sets up an inline rename for the specified item
void RequestQuickFrontendListRefresh () Requests that the asset view refreshes only items that are filtered through frontend sources.
void RequestSlowFullListRefresh () Requests that the asset view refreshes all it's source items.
void SaveSettings ( const FString& IniFilename, const FString& IniSection, const FString& SettingsString ) Saves any settings to config that should be persistent between editor sessions
void SetBackendFilter ( const FARFilter& InBackendFilter ) Notifies the asset view that the filter-list filter has changed
void SetCurrentThumbnailSize ( EThumbnailSize NewThumbnailSize ) Sets the thumbnail size and updates lists accordingly
void SetCurrentViewType ( EAssetViewType::Type NewType ) Sets the view type and updates lists accordingly
void SetFilterBar ( TSharedPtr< SFilterList > InFilterB... ) Set the filter list attached to this asset view - allows toggling of the the filter bar layout from the view options
void SetSourcesData ( const FSourcesData& InSourcesData ) Changes the base sources for this view
void SetUserSearching ( bool bInSearching ) Set whether the user is currently searching or not
bool ShouldColumnGenerateWidget ( const FString ColumnName )  
void SyncToItems ( TArrayView< const FContentBrowserIt..., const bool bFocusOnSync ) Selects the specified items.
void SyncToLegacy ( TArrayView< const FAssetData > Asse..., TArrayView< const FString > FolderL..., const bool bFocusOnSync ) Selects the specified assets and paths.
void SyncToVirtualPaths ( TArrayView< const FName > VirtualPa..., const bool bFocusOnSync ) Selects the specified virtual paths.
FText ThumbnailSizeToDisplayName ( EThumbnailSize InSize ) Gets text name for given thumbnail

Overridden from SWidget

Type Name Description
void OnDragLeave ( const FDragDropEvent& DragDropEven... ) Called during drag and drop when the drag leaves a widget.
FReply OnDragOver ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) Called during drag and drop when the the mouse is being dragged over a widget.
FReply OnDrop ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) Called when the user is dropping something onto a widget; terminates drag and drop.
void OnFocusChanging ( const FWeakWidgetPath& PreviousFoc..., const FWidgetPath& NewWidgetPath, const FFocusEvent& InFocusEvent ) Called whenever a focus path is changing on all the widgets within the old and new focus paths
FReply OnKeyChar ( const FGeometry& MyGeometry, const FCharacterEvent& InCharacter... ) Called after a character is entered while this widget has keyboard focus
FReply OnKeyDown ( const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent ) Called after a key is pressed when this widget has focus (this event bubbles if not handled)
FReply OnMouseWheel ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent ) Called when the mouse wheel is spun. This event is bubbled.
void Tick ( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) SWidget inherited.

Classes

Type Name Description
Public struct FArguments  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library