Navigation
API > API/Editor > API/Editor/ContentBrowser
An item in the asset tile view
| Name | SAssetTileItem |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowser/Public/AssetViewWidgets.h |
| Include Path | #include "AssetViewWidgets.h" |
Syntax
class SAssetTileItem : public SAssetViewItem
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SAssetViewItem → SAssetTileItem
- FSlateControlledConstruction → SWidget → SCompoundWidget → SAssetViewItem → SAssetTileItem
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~SAssetTileItem() |
Destructor | AssetViewWidgets.h |
Structs
| Name | Remarks |
|---|---|
| FArguments |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AssetNameHeights | float | Max name height for each thumbnail size | AssetViewWidgets.h |
| RegularFontHeight | float | Regular thumbnail font size | AssetViewWidgets.h |
| SmallFontHeight | float | Small thumbnail font size | AssetViewWidgets.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetThumbnail | TSharedPtr< FAssetThumbnail > | The handle to the thumbnail that this item is rendering | AssetViewWidgets.h | |
| bShowType | bool | If false, the tooltip will not be displayed | AssetViewWidgets.h | |
| CurrentThumbnailSize | TAttribute< EThumbnailSize > | Current thumbnail size when this widget was generated | AssetViewWidgets.h | |
| ItemWidth | TAttribute< float > | The width of the item. Used to enforce a square thumbnail. | AssetViewWidgets.h | |
| Thumbnail | TSharedPtr< SWidget > | Thumbnail Widget or Folder image holder | AssetViewWidgets.h | |
| ThumbnailDimension | TAttribute< float > | Actual size that the thumbnail should have | AssetViewWidgets.h | |
| ThumbnailPadding | float | The padding allotted for the thumbnail | AssetViewWidgets.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanDisplayPrimitiveTools() |
Whether the widget should allow primitive tools to be displayed | AssetViewWidgets.h | |
void Construct
(
const FArguments& InArgs |
Constructs this widget with InArgs | AssetViewWidgets.h | |
virtual void OnMouseEnter
(
const FGeometry& MyGeometry, |
Handles realtime thumbnails | AssetViewWidgets.h | |
virtual void OnMouseLeave
(
const FPointerEvent& MouseEvent |
Handles realtime thumbnails | AssetViewWidgets.h |
Overridden from SAssetViewItem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FSlateBrush * GetBorderImage() |
Get the border image to display | AssetViewWidgets.h | |
virtual void OnAssetDataChanged() |
Handles committing a name change | AssetViewWidgets.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FSlateBrush * GetAssetAreaOverlayBackgroundImage() |
AssetViewWidgets.h | ||
FSlateColor GetAssetClassLabelTextColor() |
Gets the color of the asset class label in thumbnails | AssetViewWidgets.h | |
EVisibility GetAssetClassLabelVisibility() |
Gets the visibility of the asset class label in thumbnails | AssetViewWidgets.h | |
FOptionalSize GetExtraStateIconMaxSize() |
Returns the max size to be used by extra state icons. | AssetViewWidgets.h | |
float GetExtraStateIconWidth() |
Get the expected width of an extra state icon. | AssetViewWidgets.h | |
const FSlateBrush * GetFolderBackgroundImage() |
AssetViewWidgets.h | ||
const FSlateBrush * GetFolderBackgroundShadowImage() |
AssetViewWidgets.h | ||
const FSlateBrush * GetFolderSlotBackgroundImage() |
AssetViewWidgets.h | ||
int32 GetGenericThumbnailSize() |
Generic ThumbnailSize for the Thumbnail | AssetViewWidgets.h | |
const FSlateBrush * GetNameAreaBackgroundImage() |
AssetViewWidgets.h | ||
FOptionalSize GetNameAreaMaxDesiredHeight() |
AssetViewWidgets.h | ||
FSlateColor GetNameAreaTextColor() |
AssetViewWidgets.h | ||
EVisibility GetNameAreaVisibility() |
Get the visibility for the name area, collapsed if Tiny | AssetViewWidgets.h | |
EVisibility GetSCCIconVisibility() |
Gets the visibility of the SCC icons | AssetViewWidgets.h | |
FOptionalSize GetSourceControlIconSize() |
Return the size of the class text at the bottom, based on the current ThumbnailSize | AssetViewWidgets.h | |
FOptionalSize GetStateIconImageSize() |
Returns the size of the state icon box widget (i.e dirty image, scc) | AssetViewWidgets.h | |
FOptionalSize GetThumbnailBoxSize() |
Returns the size of the thumbnail widget | AssetViewWidgets.h | |
FSlateFontInfo GetThumbnailFont() |
Returns the font to use for the thumbnail label | AssetViewWidgets.h | |
EVisibility GetTinyFolderNameOverlayVisibility() |
Gets the visibility of the folder name overlay on the folder icon | AssetViewWidgets.h | |
FOptionalSize GetTinyFolderNameWidth() |
Returns the width of the tiny folder name overlay widget | AssetViewWidgets.h | |
virtual void OnRequestingRename() |
Called when requesting renaming | AssetViewWidgets.h |
Overridden from SAssetViewItem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetNameTextWrapWidth() |
SAssetViewItem interface | AssetViewWidgets.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float GetRegularFontHeight() |
AssetViewWidgets.h | ||
static float GetSmallFontHeight() |
AssetViewWidgets.h | ||
static void InitializeAssetNameHeights() |
AssetViewWidgets.h |