Migrating to 5.3, XRBase

I tried to migrate my existing Project to the new experimental Release 5.3, but including some XR related things breaks, probably due to the XRBase refactoring. How do i go about fixing/adding the dependencies for that?

Notice that XRBase is a plugin, so make sure that’s turned on. If you are writing a plugin or depending on your project code, you may have to add:

In your .cs file, you will need something like:

			if (Target.Version.MajorVersion >= 5 && Target.Version.MinorVersion >= 2)
			{
				//Logger.LogInformation("We have UE5.2+");
				PublicDependencyModuleNames.AddRange(
					new string[]
					{
						"XRBase",
					}
				);
			}
			else
			{
				PublicDependencyModuleNames.AddRange(
					new string[]
					{
						"HeadMountedDisplay",
					}
				);
			}

And in your .uplugin file, add XRBase as a dependency:

	"Plugins": [
		{
			"Name": "XRBase",
			"Enabled": true
		}
	]
1 Like

I disabled the plugin XRBase and ARCore in the edit → plugins, restarted Unreal, and enable and restarted and the app now deploys in my Android device.

Android Device ? You mean Cardboard/Daydream VR compatible mobile ?