engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
UWidgetBlueprintGeneratedClass类 参考

The widget blueprint generated class allows us to create blueprint-able widgets for UMG at runtime. 更多...

#include <WidgetBlueprintGeneratedClass.h>

继承自 UBlueprintGeneratedClass .

Public 成员函数

void InitializeWidget (UUserWidget *UserWidget) const
 This is the function that makes UMG work. 更多...
 
virtual bool NeedsLoadForServer () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PurgeClass (bool bRecompilingOnLoad) override
 Purges out the properties of this class in preparation for it to be regenerated 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 

详细描述

The widget blueprint generated class allows us to create blueprint-able widgets for UMG at runtime.

All WBPGC's are of UUserWidget classes, and they perform special post initialization using this class to give themselves many of the same capabilities as AActor blueprints, like dynamic delegate binding for widgets.

成员函数说明

◆ InitializeWidget()

void UWidgetBlueprintGeneratedClass::InitializeWidget ( UUserWidget *  UserWidget) const

This is the function that makes UMG work.

Once a user widget is constructed, it will post load call into its generated class and ask to be initialized. The class will perform all the delegate binding and wiring necessary to have the user's widget perform as desired.

◆ NeedsLoadForServer()

virtual bool UWidgetBlueprintGeneratedClass::NeedsLoadForServer ( ) const
overridevirtual

Called during saving to determine the load flags to save with the object.

If false, this object will be discarded on servers

返回
true if this object should be loaded on servers

重载 UObject .

◆ PostLoad()

virtual void UWidgetBlueprintGeneratedClass::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UClass .

◆ PurgeClass()

virtual void UWidgetBlueprintGeneratedClass::PurgeClass ( bool  bRecompilingOnLoad)
overridevirtual

Purges out the properties of this class in preparation for it to be regenerated

参数
bRecompilingOnLoad- true if we are recompiling on load

In editor, properties are not freed until DestroyPropertiesPendingDestruction is called.

重载 UClass .

◆ Serialize()

virtual void UWidgetBlueprintGeneratedClass::Serialize ( FArchive &  Ar)
overridevirtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UClass .


该类的文档由以下文件生成: