UE5.1 C++ Transition Guide

Dear Community,

Yay for Unreal Engine 5.1!

:rose: :heart: Thank You, Epic, for the Best Engine Ever! :sparkling_heart: :rose:

Here is a place where you can post your experiences while upgrading to 5.1, either compile errors you solved, or couldn’t solve, or any other 5.1 transition related matters.

:heart:

Rama


Can’t Convert UProject, Get Error

"It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '6.0.0' was not found."

You will want to download and install this:

Download .NET 6.0 Runtime (v6.0.11) - macOS x64 Installer
(says its mac but its not, it’s Good)

:heart:

Rama

As stated by epic:

UE_DEPRECATED(5.1, "Asset path FNames have been deprecated, use Soft Object Path instead.")

So here are some changes when searching for assets (previously with FName paths)

//Old
	FARFilter Filter;
	Filter.ClassNames.AddUnique(UBlueprint::StaticClass()->GetFName());
//New
	FARFilter Filter;
	Filter.ClassPaths.AddUnique(UBlueprint::StaticClass()->GetClassPathName());



//Old
       FName AssetPath = Asset.ObjectPath;
//New
      FSoftObjectPath = Asset.GetSoftObjectPath();



//Old
	const FName& BaseClassName = AYourClass::StaticClass()->GetFName();
//New
       const FTopLevelAssetPath& BaseClassName =  AYourClass::StaticClass()->GetClassPathName();
4 Likes