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.
3
4#include "DlgDialogue.h"
5
6#define LOCTEXT_NAMESPACE "DlgSystem"
7
9// UDlgDialogueFactory
10UDlgDialogueFactory::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
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
UDlgDialogueFactory(const FObjectInitializer &ObjectInitializer)
UObject * FactoryCreateNew(UClass *Class, UObject *InParent, FName Name, EObjectFlags Flags, UObject *Context, FFeedbackContext *Warn) override
UCLASS(BlueprintType, Meta = (DisplayThumbnail = "true"))
Definition DlgDialogue.h:85