Upgrading projects in Unreal

When updating to a new version of Unreal, deprecated functions show up as warnings when compiling blueprints or packaging the project. Functions are deprecated when a new function has been added that should be used instead.

4.26 upgrades

In 4.26, all AR and VR platforms have been refactored to add common interfaces and keep application code platform agnostic, so you may see more warnings than usual. Updating to the new APIs is recommended so the project can be more easily ported to other platforms.

Warning messages will show which function has been deprecated and indicate what function to use instead. All deprecated functions will continue to work for this release but may not work in future releases. Deprecated functions will also no longer be listed when searching for functions in a blueprint.

Blueprint of the Create Named ARPin function

4.25 deprecations

Deprecated function New function
CreateNamedARPin Blueprint of the Pin Component function
LoadWMRAnchorStoreARPins Blueprint of the Load ARPins from Local Store function
LoadWMRAnchorSaveARPinToWMRAnchorStoreStoreARPins Blueprint of the Save ARPin to Local Store function
RemoveARPinFromWMRAnchorStore Blueprint of the Remove ARPin from Local Store function
SetEnabledMixedRealityCamera Blueprint of the Set Enabled XRCamera function
ResizeMixedRealityCamera Blueprint of the Resize XRCamera function
StartCameraCapture Blueprint of the Toggle ARCapture function for starting camera capture
StopCameraCapture Blueprint of the Toggle ARCapture function for stopping camera capture
StartQRCodeCapture Blueprint of the Toggle ARCapture function for starting QR code capture
StopQRCodeCapture Blueprint of the Toggle ARCapture function for stopping QR code capture
Spatial mapping previously automatically started in 4.25, but now needs to be toggled in 4.26. Blueprint of the Toggle ARCapture function for enabling spatial mapping
ShowKeyboard Removed in 4.26 since the keyboard automatically shows when a text widget is focused on.
HideKeyboard Removed in 4.26 since the keyboard will automatically hide when a text widget is unfocused.
SupportsHandTracking Blueprint of the Supports Hand Tracking property
IsDisplayOpaque Blueprint of the IsDisplayOpaque property
GetHandJointTransform, GetPointerPoseInfo, GetControllerTrackingStatus Blueprint of the Get Motion Controller Data function
GetVersionString Blueprint of the Get Version String function
IsTrackingAvailable Blueprint of the IsTrackingAvailable property
IsButtonClicked, IsButtonDown, IsGrasped, IsSelectPressed Use Unreal’s input action system.
SetFocusPointForFrame Removed in 4.26. Previously used for reprojection when remoting, which now supports depth reprojection.

4.26 changes

The significant change is that Start in VR from Edit > Project Settings > Project > Description > Settings is mandatory for starting Windows Mixed Reality plugin. Without that parameter, you will not see your holograms on the device.