Navigation
Unreal Engine C++ API Reference > Editor > GameProjectGeneration > GameProjectUtils > AddCodeToProject
References
Module | GameProjectGeneration |
Header | /Engine/Source/Editor/GameProjectGeneration/Public/GameProjectUtils.h |
Include | #include "GameProjectUtils.h" |
Source | /Engine/Source/Editor/GameProjectGeneration/Private/GameProjectUtils.cpp |
static [EAddCodeToProjectResult](API\Editor\GameProjectGeneration\GameProjectUtils\EAddCodeToProjectResult) AddCodeToProject ( const [FString](API\Runtime\Core\Containers\FString) & NewClassName, const [FString](API\Runtime\Core\Containers\FString) & NewClassPath, const [FModuleContextInfo](API\Runtime\Projects\FModuleContextInfo) & ModuleInfo, const [FNewClassInfo](API\Editor\GameProjectGeneration\FNewClassInfo) ParentClassInfo, const [TSet](API\Runtime\Core\Containers\TSet)< [FString](API\Runtime\Core\Containers\FString) > & DisallowedHeaderNames, [FString](API\Runtime\Core\Containers\FString) & OutHeaderFilePath, [FString](API\Runtime\Core\Containers\FString) & OutCppFilePath, [FText](API\Runtime\Core\Internationalization\FText) & OutFailReason, [EReloadStatus](API\Editor\GameProjectGeneration\GameProjectUtils\EReloadStatus) & OutReloadStatus )
Remarks
Adds new source code to the project. When returning Succeeded or FailedToHotReload, OutSyncFileAndLineNumber will be the the preferred target file to sync in the users code editing IDE, formatted for use with GenericApplication::GotoLineInSource