Navigation
API > API/Runtime > API/Runtime/Projects > API/Runtime/Projects/IProjectManager
Description
Sets the project's EpicSampleNameHash (based on its filename) and category, then saves the file to disk. This marks the project as a sample and fixes its filename so that it isn't mistaken for a sample if a copy of the file is made.
| Name | SignSampleProject |
| Type | function |
| Header File | /Engine/Source/Runtime/Projects/Public/Interfaces/IProjectManager.h |
| Include Path | #include "Interfaces/IProjectManager.h" |
bool SignSampleProject
(
const FString & FilePath,
const FString & Category,
FText & OutFailReason
)
true if the file was successfully updated and saved to disk
Parameters
| Name | Remarks |
|---|---|
| FilePath | The filepath where the sample project is stored. |
| Category | Category to place the sample in |
| OutFailReason | When returning false, this provides a display reason why the file could not be created. |