GameProjectUtils::CalculateSourcePaths

Given the path provided, work out where generated .h and .cpp files would be placed

Windows
MacOS
Linux

References

Module

GameProjectGeneration

Header

/Engine/Source/Editor/GameProjectGeneration/Public/GameProjectUtils.h

Include

#include "GameProjectUtils.h"

Source

/Engine/Source/Editor/GameProjectGeneration/Private/GameProjectUtils.cpp

Syntax

static bool CalculateSourcePaths
(
    const FString & InPath,
    const FModuleContextInfo & ModuleInfo,
    FString & OutHeaderPath,
    FString & OutSourcePath,
    FText *const OutFailReason
)

Remarks

Given the path provided, work out where generated .h and .cpp files would be placed

Returns

false if the paths are invalid

Parameters

Parameter

Description

InPath

The path to use a base

ModuleInfo

Information about the module being validated

OutHeaderPath

The path where the .h file should be placed

OutSourcePath

The path where the .cpp file should be placed

OutFailReason

Optional parameter to fill with failure information

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss