FNewClassInfo

Information used when creating a new class via AddCodeToProject

Unreal Engine C++ API Reference > Editor > GameProjectGeneration

References

   
Module GameProjectGeneration
Header /Engine/Source/Editor/GameProjectGeneration/Public/AddToProjectConfig.h
Include #include "AddToProjectConfig.h"

Syntax

struct FNewClassInfo  

Remarks

Information used when creating a new class via AddCodeToProject

Variables

Type Name Description
const UClass &#... BaseClass Base class information; if the ClassType is UObject
EClassType ClassType The type of class we want to create

Constructors

Type Name Description
  FNewClassInfo () Default constructor; must produce an object which fails the IsSet check
  FNewClassInfo ( const EClassType InClassType ) Convenience constructor so you can construct from a EClassType
  FNewClassInfo ( const UClass* InBaseClass ) Convenience constructor so you can construct from a UClass

Functions

Type Name Description
FString GetBaseClassHeaderFilename () Gets header filename of the base class.
FText GetClassDescription ( const bool bFullDescription ) Get the class description to use in the UI
const FSlate... GetClassIcon () Get the class icon to use in the UI
FText GetClassName () Get the "friendly" class name to use in the UI
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()
FString GetClassPrefixCPP () Get the C++ prefix used for this class type
FString GetCleanClassName ( const FString& ClassName ) Some classes may apply a particular suffix; this function returns the class name with those suffixes removed
FString GetFinalClassName ( const FString& ClassName ) Some classes may apply a particular suffix; this function returns the class name that will ultimately be used should that happen
FString GetHeaderFilename ( const FString& ClassName ) Given a class name, generate the header file (.h) that should be used for this class
FString GetHeaderTemplateFilename () Get the generation template filename to used based on the current class type
bool GetIncludePath ( FString& OutIncludePath ) Get the path needed to include this class into another file
FString GetSourceFilename ( const FString& ClassName ) Given a class name, generate the source file (.cpp) that should be used for this class
FString GetSourceTemplateFilename () Get the generation template filename to used based on the current class type
bool IsSet () Check to see if this struct is set to something that could be used to create a new class

Enums

Type Name Description
Public enum EClassType The type of class we want to create

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library