Module Templates
Documentation for the Osero Suite: Module Creator update 1.1 (5.2+)
Last updated
Documentation for the Osero Suite: Module Creator update 1.1 (5.2+)
Last updated
Module Templates are special Data Assets that contain date to use when creating a new module. By default, the tool uses DefaultTemplate_Data, which is a basic module with no custom code. It's essentially a copy of the module used in the Blank Plugin template when creating a new plugin in the Plugin Manager.
The plugin also comes with an example of a custom Module Template called OseroSuiteEditorTool_Template, which is a copy of a basic Osero Suite tool module with no custom code. It includes code to add a new tool to the Osero Suite menu, create its slate UI, Details Customisation, and basic static functions used across many Osero Suite tools.
The Example Template is located in Plugins > Osero Suite: Module Creator Content > Example.
Clicking this button will replace all the data in this template with the imported data from an existing module. This action will provide a window to select an existing module to copy.
Accept: Replaces ALL data in this template with the data from the selected module. This includes the module header, cpp, Build.cs, and any additional files. This will NOT clear custom keys.
Cancel: Cancel the operation, leaving the template as it is.
Clicking this button will replace all the data in this template with the imported data from a valid json file. The tool performs a check to make sure the json file is a json saved from the Osero Suite: Module Creator.
Clicking this button will create a new json file with all of the data in this template for easy copying between projects or editing in an external program. The json file will also include an "OseroSuite" field to identify it as a valid json file for import.
The essentials of a module include the module header, module cpp, and Build.cs files. If any of these are left blank, the tool will abort and not create a new module.
Keys allow the user to modify data in a template automatically when the new module is created.
Default Keys: These are internal keys used behind the scenes and can be used in most text fields of the module template. Clicking any of these keys will copy it to the clipboard so that it can be easily pasted into the text fields.
{Module Name} will be replaced with the New Module Name defined in the tool when creating a new module.
{Module Name UPPER} will be replaced with the New Module Name defined in the tool when creating a new module, but all in UPPERCASE. Useful for defining {Module Name UPPER}_API in templates.
{Plugin Name} will be replaced with the Target name. This will be the Plugin Name if it's a .uplugin, or the Project Name if it's the root project.
{Copyright Notice} will be replaced with this Project's Copyright Notice defined in Project Settings.
Custom Keys: Custom keys allow the user to set additional keys to be replaced in the module creation process. Any keys defined here will appear in the Module Creator window when this template is being used to create a new module. In the example, there are two custom keys: {ID} and {Full Name}.
Additional Files are files other than the essential module header, module cpp, and Build.cs files. The example includes three additional files: S{ID}_Tool, {ID}_Style, and {ID}_Statics.
View the previous additional file.
The file number that you are viewing and the total number of additional files.
Add a new additional file to this template.
Delete ALL additional files from this template.
View the next additional file.
The subfolder of this additional file relative to the root of the new module (ie, where the module header/cpp is saved).
Insert a new blank additional file here.
Duplicate this additional file.
Delete this additional file from this template.
The additional file's header data.
Private will place the header in the new module's Private folder rather than Public.
The additional file's cpp data.
Leaving the cpp name blank will force the tool to use the header name for the cpp as well. If both are blank, the tool will not generate a module successfully and it will abort the process.
New cpp files will always be placed in the new module's Private folder.
The additional file's other data. This other data can be of any valid file type.
The file extension is defined for this file.
Private will place this file in the new module's Private folder rather than Public.