UE 5.2 C++ Transition Guide

Dear Community,

Here is the 5.2 Transition Guide!

You are welcome to post issues and solutions you have experienced while trying to update to 5.2!

(as of this post 5.2 is still in preview, but I just haaaaaad to post this link!)

:heart: For Anyone Having Trouble Packaging Games In 5.2 (Need VS 2022) :heart:

The Link:

(Special thanks to JaRamOxO for sharing this with All of Us!) <~~~

:heart:

Rama

2 Likes

:heart: 5.2 Is Here! Yaaaay! :heart:

You can post your :rose: learnings :tulip: sharings and questions :giraffe: about 5.2 upgrade process here!

:heart:

Rama

1 Like

We are having trouble upgrading our 5.1.1 project to 5.2
After rebuilding our .sln (in vs2022)
We keep hitting the statis_assert in
C:\Program Files\Epic Games\UE_5.2\Engine\Source\Runtime\Launch\Resources\Version.h (line 66)

static_assert(ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION == 2 && ENGINE_PATCH_VERSION == 0); //-V501

causing crashing on building.

There are a fair amount of documenation in the .h file about this, but to honest, I’m simply not able to follow it.

Can someone dumb it down and tell me what might be causing my issue?
Thanks for any advice.

If you used FSkeletalMaterial anywhere it is now placed in:
#include “Engine/SkinnedAssetCommon.h”

instead of Engine/SkeletalMesh.h

2 Likes

UChaosVehicleWheel now has WheelMass exposed as a float UPROPERTY! Before 5.2, I had created a derived class only to pass through this value to the physics config with a dirty const_cast<Chaos::FSimpleWheelConfig&>(GetPhysicsWheelConfig()).WheelMass = WheelMass; called from the “Init” function. It worked but was glad to be able to remove this abomination now :slight_smile: