Navigation
API > API/Editor > API/Editor/GameProjectGeneration
Information used when creating a new class via AddCodeToProject
| Name | FNewClassInfo |
| Type | struct |
| Header File | /Engine/Source/Editor/GameProjectGeneration/Public/AddToProjectConfig.h |
| Include Path | #include "AddToProjectConfig.h" |
Syntax
struct FNewClassInfo
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNewClassInfo
(
const UClass* InBaseClass |
Convenience constructor so you can construct from a UClass | AddToProjectConfig.h | |
| Default constructor; must produce an object which fails the IsSet check | AddToProjectConfig.h | ||
FNewClassInfo
(
const EClassType InClassType |
Convenience constructor so you can construct from a EClassType | AddToProjectConfig.h |
Enums
Public
| Name | Remarks |
|---|---|
| EClassType | The type of class we want to create |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseClass | const UClass * | Base class information; if the ClassType is UObject | AddToProjectConfig.h | |
| ClassType | EClassType | The type of class we want to create | AddToProjectConfig.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString GetBaseClassHeaderFilename() |
Gets header filename of the base class. | AddToProjectConfig.h | |
FText GetClassDescription
(
const bool bFullDescription |
Get the class description to use in the UI | AddToProjectConfig.h | |
const FSlateBrush * GetClassIcon() |
Get the class icon to use in the UI | AddToProjectConfig.h | |
FText GetClassName() |
Get the "friendly" class name to use in the UI | AddToProjectConfig.h | |
FString GetClassNameCPP() |
Get the C++ class name; this may or may not be prefixed, but will always produce a valid C++ name via GetClassPrefix() + GetClassName() | AddToProjectConfig.h | |
FString GetClassPrefixCPP() |
Get the C++ prefix used for this class type | AddToProjectConfig.h | |
| Some classes may apply a particular suffix; this function returns the class name with those suffixes removed | AddToProjectConfig.h | ||
| Some classes may apply a particular suffix; this function returns the class name that will ultimately be used should that happen | AddToProjectConfig.h | ||
| Given a class name, generate the header file (.h) that should be used for this class | AddToProjectConfig.h | ||
FString GetHeaderTemplateFilename() |
Get the generation template filename to used based on the current class type | AddToProjectConfig.h | |
bool GetIncludePath
(
FString& OutIncludePath |
Get the path needed to include this class into another file | AddToProjectConfig.h | |
| Given a class name, generate the source file (.cpp) that should be used for this class | AddToProjectConfig.h | ||
FString GetSourceTemplateFilename() |
Get the generation template filename to used based on the current class type | AddToProjectConfig.h | |
bool IsSet() |
Check to see if this struct is set to something that could be used to create a new class | AddToProjectConfig.h |