A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgDialogueFactory.cpp
Go to the documentation of this file.
1
// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2
#include "
DlgDialogueFactory.h
"
3
4
#include "
DlgDialogue.h
"
5
6
#define LOCTEXT_NAMESPACE "DlgSystem"
7
9
// UDlgDialogueFactory
10
UDlgDialogueFactory::UDlgDialogueFactory
(
const
FObjectInitializer& ObjectInitializer)
11
: Super(ObjectInitializer)
12
{
13
bCreateNew =
true
;
14
15
// true if the associated editor should be opened after creating a new object.
16
bEditAfterNew =
true
;
17
SupportedClass = UDlgDialogue::StaticClass();
18
}
19
20
UObject
*
UDlgDialogueFactory::FactoryCreateNew
(
21
UClass* Class,
22
UObject
* InParent,
23
FName
Name
,
24
EObjectFlags Flags,
25
UObject
* Context,
26
FFeedbackContext* Warn
27
)
28
{
29
UDlgDialogue
* NewDialogue = NewObject<UDlgDialogue>(InParent, Class,
Name
, Flags | RF_Transactional);
30
return
NewDialogue;
31
}
32
33
#undef LOCTEXT_NAMESPACE
EDlgVariableType::Name
@ Name
DlgDialogue.h
DlgDialogueFactory.h
UDlgDialogueFactory::UDlgDialogueFactory
UDlgDialogueFactory(const FObjectInitializer &ObjectInitializer)
Definition
DlgDialogueFactory.cpp:10
UDlgDialogueFactory::FactoryCreateNew
UObject * FactoryCreateNew(UClass *Class, UObject *InParent, FName Name, EObjectFlags Flags, UObject *Context, FFeedbackContext *Warn) override
Definition
DlgDialogueFactory.cpp:20
UDlgDialogue
UCLASS(BlueprintType, Meta = (DisplayThumbnail = "true"))
Definition
DlgDialogue.h:85
UObject
SDKDemo
Plugins
UnrealEngineSDK
VisualScripter
Source
DlgSystemEditor
Private
Factories
DlgDialogueFactory.cpp
Generated
Wed Oct 9 2024 19:52:55
by Doxygen version
1.10.0