Navigation
API > API/Plugins > API/Plugins/CommonUI
| Name | TWidgetFactory |
| Type | class |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/WidgetFactory.h |
| Include Path | #include "WidgetFactory.h" |
Syntax
template<class WidgetType>
class TWidgetFactory : public FGCObject
Inheritance Hierarchy
- FGCObject → TWidgetFactory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| WidgetFactory.h | |||
TWidgetFactory
(
TWidgetFactory&& Other |
WidgetFactory.h | ||
TWidgetFactory
(
UWidget& InOwningWidget, |
WidgetFactory.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TWidgetFactory() |
WidgetFactory.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ConstructMethodType | TFunctionRef< TSharedPtr< SObjectWidget >(UUserWidget *, TSharedRef< SWidget >)> | WidgetFactory.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActiveWidgets | TArray< TObjectPtr< WidgetType > > | WidgetFactory.h | ||
| bTrackActiveWidgets | bool | WidgetFactory.h | ||
| CachedSlateWidgets | TMap< WidgetType *, TSharedPtr< SWidget > > | WidgetFactory.h | ||
| InactiveWidgets | TArray< TObjectPtr< WidgetType > > | WidgetFactory.h | ||
| OuterGetter | TFunction< UObject *(void)> | WidgetFactory.h | ||
| OwningWidget | TWeakObjectPtr< UWidget > | WidgetFactory.h | ||
| WidgetClass | TSubclassOf< WidgetType > | WidgetFactory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
WidgetType * Acquire() |
Method to get a widget from this factory, can sometimes call CreateWidget | WidgetFactory.h | |
const TArray< WidgetType * > & GetActiveWidgets() |
WidgetFactory.h | ||
bool IsInitialized() |
WidgetFactory.h | ||
void PreConstruct
(
int32 Num |
WidgetFactory.h | ||
void Release
(
WidgetType* Widget |
Return a widget to the pool, allowing it to be reused in the future | WidgetFactory.h | |
void Reset
(
const bool bReleaseSlate, |
WidgetFactory.h | ||
TSharedRef< DerivedWidgetType > TakeAndCacheRow
(
WidgetType* Key, |
Convenience function for SObjectTableRows takes and caches the widget, then creates the object row around it | WidgetFactory.h | |
TSharedRef< DerivedWidgetType > TakeAndCacheWidget
(
WidgetType* Key, |
WidgetFactory.h |
Overridden from FGCObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
WidgetFactory.h | ||
virtual FString GetReferencerName() |
WidgetFactory.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TWidgetFactory & operator=
(
TWidgetFactory&& Other |
WidgetFactory.h |