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 SetExtension
(
const FStringView & InPath,
const FStringView & InNewExtension
)
Remarks
Sets the file extension of a filename. The new file path complete with the new extension.
Parameters
| Name | Description |
|---|---|
| InPath | A file path with or without a pre-existing extension. |
| InNewExtension | The new extension to use (prefixing with a '.' is optional) |