/Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h
Checks the root of the package's path to see if it is a script package
true if the root of the path matches the script path
static bool IsScriptPackage ( FStringView InPackageName )