RealDocs

UBlueprintPathsLibrary::IsRelative

function Engine Blueprint Since 4.20
#include "Kismet/BlueprintPathsLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns true if the given path is relative rather than absolute.

Caveats & Gotchas

  • Relative here means "not rooted at a drive letter or leading slash" — it does not check whether the path is relative to any particular base directory you have in mind.
  • Combine with ConvertRelativePathToFull if you need an absolute path for filesystem operations that require one.

Signature

static bool IsRelative(const FString& InPath)

Parameters

Name Type Description Default
InPath const FString& The path to test.

Return Type

bool

Example

Check whether a path needs resolving C++
if (UBlueprintPathsLibrary::IsRelative(TEXT("Content/Textures/Rock.png")))
{
	// Resolve relative to a known base directory before using it
}

Version History

Introduced in: 4.20

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.