# .uproject does not list plugin 'XRBase' as a dependency, but module 'MyGame' depends on 'XRBase'.

**URL:** <https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083>\
**Category:** XR Development\
**Tags:** unreal-engine, question\
**Created:** [December 28, 2024, 10:39am UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083 "2024-12-28T10:39:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 28, 2024, 10:39am UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083/1 "2024-12-28T10:39:56Z")

</div>

Hey there!

I’m using Unreal Engine 5.4.4.

I’m learning how to develop a VR game with C++. To do it, I’m checking the Blueprint’s VR Template project. My first thing I’m doing is replicate the blueprint VR Pawn in C++. This is what I’ve done in my project:

I have added the OpenXR and OpenXRHandTracking:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/3/2b32a4f788f579bc678cc3d100a334a556b14f05.png)

These plugins are enabled in the .uproject:

```auto
"Plugins": [
	{
		"Name": "ModelingToolsEditorMode",
		"Enabled": true
	},
	{
		"Name": "OpenXR",
		"Enabled": true,
		"SupportedTargetPlatforms": [
			"Win64",
			"Linux",
			"Android",
			"VisionOS"
		]
	},
	{
		"Name": "OpenXRHandTracking",
		"Enabled": true,
		"SupportedTargetPlatforms": [
			"Win64",
			"Linux",
			"Android",
			"VisionOS"
		]
	}
]

```

But in **MyGame.Build.cs** I have added this:

```auto
PublicDependencyModuleNames.AddRange(new string[]
{
	"Core",
	"CoreUObject",
	"Engine",
	"InputCore",
    "EnhancedInput",
    "XRBase",
	"HeadMountedDisplay",
	"UMG"
});

```

Do I have to add `XRBase` module here or `OpenXR`?

How can I fix this warning?

Thanks!

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [December 28, 2024, 2:34pm UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083/2 "2024-12-28T14:34:08Z")

</div>

Enabling the XRBase plugin from the plugins menu should fix the warning.

To access the XR system from C++ code, it is probably enough with those dependencies. You only need the OpenXR module there if you need any of the few features that aren’t abstracted by the HeadMountedDisplay module.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 28, 2024, 2:35pm UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083/3 "2024-12-28T14:35:23Z")

</div>

Thanks for your answer.

Is there any documentation, video or tutorial about how to start developing VR with OpenXR and C++?

Thanks again.

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [December 28, 2024, 2:38pm UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083/4 "2024-12-28T14:38:08Z")

</div>

By the way, the XRBase plugin is already enabled:

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/8/4387f5874cc66e9f71d98c8854ceba91b17ad58a.png)

But it isn’t in the `.uproject` file:

```auto

"Plugins": [
	{
		"Name": "ModelingToolsEditorMode",
		"Enabled": true
	},
	{
		"Name": "OpenXR",
		"Enabled": true,
		"SupportedTargetPlatforms": [
			"Win64",
			"Linux",
			"Android",
			"VisionOS"
		]
	},
	{
		"Name": "OpenXRHandTracking",
		"Enabled": true,
		"SupportedTargetPlatforms": [
			"Win64",
			"Linux",
			"Android",
			"VisionOS"
		]
	}
]

```

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [December 28, 2024, 2:44pm UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083/5 "2024-12-28T14:44:33Z")

</div>

I haven’t seen any documentation anywhere at least.

Try unchecking and checking the plugin. It’s probably been implicitly enabled by the OpenXR plugin.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 27, 2025, 2:44pm UTC](https://forums.unrealengine.com/t/uproject-does-not-list-plugin-xrbase-as-a-dependency-but-module-mygame-depends-on-xrbase/2247083/6 "2025-01-27T14:44:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
