Hi, I cannot figure out how to successfully create a Template from my c++ project. I want to create a template so that I can create multiple games from it. So I used the TP_ThirdPerson TemplateDef.ini in MyTemplate. However when my new project is created, the files get renamed. Such as MyTemplateGameData.h (which is a PrimaryDataAsset) becomes NewProjectGameData.h but my blueprint child of NewProjectGameData still references MyTemplateGameData as it’s parent.
I could just recreate the blueprint, but I have many other classes that do the same thing and recreating them all would defeat the purpose of making a template.
How do I fix this issue? I looked in Documentation and found nothing to explain what each parameter in the TemplateDef.ini does. So what does each parameter do, and what is the best configuration to get what I want done?
I usually do it like this: Create an empty project, creat and edit the files I want to have inside the template. Copy Content, Source and the *.uproject file to a folder inside …/UE5/Templates and edit the config files to match my data. Look inside the Config folder. There are some settings you have to change in different files. SimpleTemplate.zip (21.0 KB)
Here is a example template project. Just put it in …/UE5/Templates, start UnrealEngine and go to the Games Tab for a new project.
Ok I downloaded your zip file. Added a PrimaryDataAsset named TemplateCreationGameData.h and TemplateCreationGameData.cpp respectively. Then made a blueprint child of TemplateCreationGameData and put it next to your blueprints.
Then created a new project from that template. Named My Project “DoodleTime” and expected to have DoodleTimeCharacter DoodleTimeGameMode and DoodleTimeGameData but they all were TemplateCreation prefixed. The C++ Files were renamed correctly. But the blueprints were parented to TemplateCreationCharacter, TemplateCreationGameMode and TemplateCreationGameData.
What gives? Is there a Bug? Or is there something else I needed to add? SimpleTemplateEdited.zip (24.9 KB)