Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/FPathViews
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/PathViews.h |
| Include | #include "Misc/PathViews.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/PathViews.cpp |
static FString ChangeExtension
(
const FStringView & InPath,
const FStringView & InNewExtension
)
Remarks
Replaces the pre-existing file extension of a filename. The new file path complete with the new extension unless InPath is not valid in which case a copy of InPath will be returned instead.
Parameters
| Name | Description |
|---|---|
| InPath | A valid file path with a pre-existing extension. |
| InNewExtension | The new extension to use (prefixing with a '.' is optional) |