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.
| 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.
|
overridevirtual |
Called during saving to determine the load flags to save with the object.
If false, this object will be discarded on servers
重载 UObject .
|
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 .
|
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 .
|
overridevirtual |