CriWare Unreal Engine
Plug-ins for CriWare solutions.
载入中...
搜索中...
未找到
SAssetView类 参考

#include <SAssetView.h>

类 SAssetView 继承关系图:

Public 成员函数

 SAssetView ()
 ~SAssetView ()
void Construct (const FArguments &InArgs)
void GetObject (FAssetData &OutAssetData) const
virtual FReply OnDragDetected (const FGeometry &Geometry, const FPointerEvent &PointerEvent) override
virtual FReply OnMouseButtonDoubleClick (const FGeometry &Geometry, const FPointerEvent &PointerEvent) override
virtual FReply OnMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
void SetObject (const FAssetData &InAssetData)
 SLATE_BEGIN_ARGS (SAssetView)

Private 成员函数

TSharedRef< SWidget > CreateAssetView (bool bWithThumbnail, float ThumbnailSize)
 DECLARE_DELEGATE_RetVal_TwoParams (bool, FIsAssetAcceptableForDropWithReason, const FAssetData &, FText &)
 DECLARE_DELEGATE_TwoParams (FOnAssetDropped, const FDragDropEvent &, const FAssetData &)

Private 属性

TAttribute< FAssetData > AssetData
bool bAllowAssetDragging
bool bAllowAssetDropping
bool bDisplayThumbnail
bool bOpenAssetOnDoubleClick
FOnAssetDropped OnAssetDropped
FIsAssetAcceptableForDropWithReason OnIsAssetAcceptableForDropWithReason
TSharedPtr< SOverlay > ThumbnailOverlay
float ThumbnailSize

构造及析构函数说明

◆ SAssetView()

SAssetView::SAssetView ( )

The object displayed in this asset view Whether a Thmbnail is displayed if object is an asset. The size in pixel of the thumbnail to display. Open asset editor when mouse is double clicked on the widget. Whether possible to drag the asset outside this view. Whether possible to drop an asset to this view. Called when an asset was dropped to this view. Called when we need to check if an asset type is valid for dropping and also will have a reason if it is not Called when this text is double clicked

◆ ~SAssetView()

SAssetView::~SAssetView ( )

成员函数说明

◆ Construct()

void SAssetView::Construct ( const FArguments & InArgs)

Construct this widget

参数
InArgsThe declaration data for this widget

◆ CreateAssetView()

TSharedRef< SWidget > SAssetView::CreateAssetView ( bool bWithThumbnail,
float ThumbnailSize )
private

◆ DECLARE_DELEGATE_RetVal_TwoParams()

SAssetView::DECLARE_DELEGATE_RetVal_TwoParams ( bool ,
FIsAssetAcceptableForDropWithReason ,
const FAssetData & ,
FText &  )
private

Called when we need to check if an asset type is valid for dropping and also will have a reason if it is not

◆ DECLARE_DELEGATE_TwoParams()

SAssetView::DECLARE_DELEGATE_TwoParams ( FOnAssetDropped ,
const FDragDropEvent & ,
const FAssetData &  )
private

Called when a valid asset is dropped

◆ GetObject()

void SAssetView::GetObject ( FAssetData & OutAssetData) const
inline

Gets the obejct assigned to this asset view

返回
This asset view's object

◆ OnDragDetected()

FReply SAssetView::OnDragDetected ( const FGeometry & Geometry,
const FPointerEvent & PointerEvent )
overridevirtual

◆ OnMouseButtonDoubleClick()

FReply SAssetView::OnMouseButtonDoubleClick ( const FGeometry & Geometry,
const FPointerEvent & PointerEvent )
overridevirtual

◆ OnMouseButtonDown()

FReply SAssetView::OnMouseButtonDown ( const FGeometry & MyGeometry,
const FPointerEvent & MouseEvent )
overridevirtual

◆ SetObject()

void SAssetView::SetObject ( const FAssetData & InAssetData)

Sets the object for this asset view.

◆ SLATE_BEGIN_ARGS()

SAssetView::SLATE_BEGIN_ARGS ( SAssetView )
inline

类成员变量说明

◆ AssetData

TAttribute<FAssetData> SAssetView::AssetData
private

◆ bAllowAssetDragging

bool SAssetView::bAllowAssetDragging
private

◆ bAllowAssetDropping

bool SAssetView::bAllowAssetDropping
private

◆ bDisplayThumbnail

bool SAssetView::bDisplayThumbnail
private

◆ bOpenAssetOnDoubleClick

bool SAssetView::bOpenAssetOnDoubleClick
private

◆ OnAssetDropped

FOnAssetDropped SAssetView::OnAssetDropped
private

◆ OnIsAssetAcceptableForDropWithReason

FIsAssetAcceptableForDropWithReason SAssetView::OnIsAssetAcceptableForDropWithReason
private

◆ ThumbnailOverlay

TSharedPtr<SOverlay> SAssetView::ThumbnailOverlay
private

◆ ThumbnailSize

float SAssetView::ThumbnailSize
private

该类的文档由以下文件生成:
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCoreEditor/Private/Widgets/SAssetView.h
  • C:/git/uev2/Engine/Plugins/Runtime/CriWare/CriWare/Source/CriWareCoreEditor/Private/Widgets/SAssetView.cpp