# VR Expansion Plugin

**URL:** <https://forums.unrealengine.com/t/vr-expansion-plugin/68709>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [July 11, 2016, 6:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709 "2016-07-11T18:16:57Z")\
**Posts on this page:** 20\
**Page:** 234

<div class="post-metadata">

**Author:** ![a\_prototype](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/a_prototype/32/476233_2.png) [@a\_prototype](https://forums.unrealengine.com/u/a_prototype)\
**Post date:** [August 16, 2021, 8:53am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4777 "2021-08-16T08:53:47Z")

</div>

Hey . Could you elaborate a bit on the OpenXR version? Is there already a rough ETA, and will all functionality be fully ported?

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 16, 2021, 12:55pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4778 "2021-08-16T12:55:34Z")

</div>

OpenXR is fairly straight forward, it has no effect on the plugins functionality, it just required a couple of replacement classes for Controller type and replicated hand animation.

The porting will come down to people removing unused VR module specific nodes / code (like the steamvr specific stuff) and converting to OpenXR’s tracking being universal by default at the palm position instead of each controllers tip.

The 4.27 example template has been ported already and is default openXR going forward, 4.27 is the first openXR shipping ready engine build.

There is no ETA on the plugin as the plugin has always been fully compatible, just those additional OpenXR functions were recently added to smooth things out.

---

<div class="post-metadata">

**Author:** ![Virtuality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtuality/32/1140891_2.png) [@Virtuality](https://forums.unrealengine.com/u/Virtuality)\
**Post date:** [August 18, 2021, 7:46am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4779 "2021-08-18T07:46:52Z")

</div>

Hey there,

I’m trying to compile the plugin for UE5, but I’m seeing two errors:

> Error Unrecognized type ‘TObjectPtr’ - type must be a UCLASS, USTRUCT or UENUM  
> (in \Source\VRExpansionPlugin\Public\VRBPDatatypes.h 99)

and

> Warning: Plugin ‘VRExpansionPlugin’ does not list plugin ‘PhysXVehicles’ as a dependency, but module ‘VRExpansionPlugin’ depends on ‘PhysXVehicles’.

Do you maybe have any ideas on how to handle these?

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 18, 2021, 12:42pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4780 "2021-08-18T12:42:47Z")

</div>

Sounds like you are trying to compile the ue5 source for a ue4 binary. TObjectPtr is new to ue5 and doesn’t exist in ue4, and physxvehicles is only included when physx is enabled (which is gone in ue5).

Check the project engine version that is set.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 19, 2021, 6:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4781 "2021-08-19T18:07:14Z")

</div>

Master branch is now 4.27, binaries will be up shortly.

4.27 migration notes and patch notes here: [4.27 Patch Notes – VR Expansion Plugin](https://vreue4.com/4-27-patch-notes)

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [August 19, 2021, 8:43pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4782 "2021-08-19T20:43:36Z")

</div>

A couple of hours after release, what a king

---

<div class="post-metadata">

**Author:** ![Switchblade1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Switchblade1](https://forums.unrealengine.com/u/Switchblade1)\
**Post date:** [August 19, 2021, 11:16pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4783 "2021-08-19T23:16:44Z")

</div>

Help casting to Vive\_PawnCharacter using the On Gripped event for grippable static mesh!

I’m able to cast to Vive\_PawnCharacter no problem if I use the Event ActorBeginOverlap because I can just drag the object pin into the cast object node and it works. However the On Gripped event doesn’t have node… can someone walk me through creating an actor object reference to the Vive\_PawnCharacter that I could pull from. Perhaps if I put it in the game instance, then pull from there? A bit new at … thanks!

(I added a text render in the Vive PawnCharacter that I trigger to show as visible or not in the field of view depending on certain conditions)

 ![Object Issue](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/a/1af8813568f74cd14a8f2bae4e869716405961c4.png)

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 19, 2021, 11:50pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4784 "2021-08-19T23:50:48Z")

</div>

GrippingController-\>GetOwner-\>Cast to the character

---

<div class="post-metadata">

**Author:** ![Switchblade1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Switchblade1](https://forums.unrealengine.com/u/Switchblade1)\
**Post date:** [August 19, 2021, 11:59pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4785 "2021-08-19T23:59:42Z")

</div>

Amazing! Thank you! worked! I thought I understood casting ok… I’ve got a ways to go lol…

---

<div class="post-metadata">

**Author:** ![David\_Chaseling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David\_Chaseling](https://forums.unrealengine.com/u/David_Chaseling)\
**Post date:** [August 24, 2021, 3:29am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4786 "2021-08-24T03:29:06Z")

</div>

Is there a setting to make the hands animate closed when you grip away from anything grippable / grip in mid air?

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 24, 2021, 12:36pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4787 "2021-08-24T12:36:37Z")

</div>

Not automatically, but its a simple pass through for the animbp.

---

<div class="post-metadata">

**Author:** ![mkygogo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mkygogo/32/88718_2.png) [@mkygogo](https://forums.unrealengine.com/u/mkygogo)\
**Post date:** [August 29, 2021, 3:33am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4788 "2021-08-29T03:33:39Z")

</div>

I build the example got from github , there are some error:

 ![1630203610(1)](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/4/54809b987be0d586a54a059af587320d9b1766e5.png)

How I fix it ?tks

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 30, 2021, 12:30pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4789 "2021-08-30T12:30:24Z")

</div>

You downloaded the 4.27 (master) branch instead of the 4.26-Locked branch (I assume 4.26).

---

<div class="post-metadata">

**Author:** ![mkygogo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mkygogo/32/88718_2.png) [@mkygogo](https://forums.unrealengine.com/u/mkygogo)\
**Post date:** [August 30, 2021, 2:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4790 "2021-08-30T14:24:42Z")

</div>

ok, I will try the 4.26 , tks

---

<div class="post-metadata">

**Author:** ![PucheDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/puchedev/32/978017_2.png) [@PucheDev](https://forums.unrealengine.com/u/PucheDev)\
**Post date:** [August 31, 2021, 7:16am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4791 "2021-08-31T07:16:13Z")

</div>

Hey, i used the plugin in the 5.0 version, only the plugin, not the Template, all in c++. I have a problem with the grip system.  
When i call GripObject function, it’s return true. But the object isn’t gripped.

But if i keep moving the character, it’s gripped well. I tried to debug by myself, but i don’t see where the function treat my collision as sweep.

Any suggestion here?

The collision is fine, i pretty sure is a simple bool but not sure where is it. ☹

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [August 31, 2021, 12:42pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4792 "2021-08-31T12:42:05Z")

</div>

Not the plugin, sounds like Chaos’s issues with sleeping objects not being able to wake up correctly.  
Its why I have been telling people not to try and dev with physics in ue5, the chaos version on it seems worse / older than the 4.26 chaos branch (which fixed that issue).

You can bring another simulating object over near it (not even touching) and it will wake back up as its considered for interaction again.

Any non physical grip should function fine, but yeah, any time a simulating object comes to rest with ue5 chaos currently its going to stay at rest unless forced to wake up.

---

<div class="post-metadata">

**Author:** ![gpu2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gpu2015](https://forums.unrealengine.com/u/gpu2015)\
**Post date:** [September 2, 2021, 5:49am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4793 "2021-09-02T05:49:20Z")

</div>

anyone tried to run VRExpExample in UE4.27.0?  
the OculusQuest2’s joysticks not work…both thumbstick and buttons…

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 2, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4794 "2021-09-02T12:43:43Z")

</div>

The example is on OpenXR now as of 4.27, if your inputs aren’t working make sure that Oculus is set to the openXR target in the oculus app (if linked). It can default to steam and steam isn’t currently passing through openXR to oculus correctly.

---

<div class="post-metadata">

**Author:** ![gpu2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gpu2015](https://forums.unrealengine.com/u/gpu2015)\
**Post date:** [September 3, 2021, 1:18am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4795 "2021-09-03T01:18:21Z")

</div>

thanks, is the specification in Oculus new doc? i’ll search it right now.

> [@](#):
>
> Oculus is set to the openXR target in the oculus app (if linked)

how to set please? there is not option the mu oculus app on andriod mobile phone.

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [September 3, 2021, 12:32pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4796 "2021-09-03T12:32:37Z")

</div>

Are you using it linked or standalone? stand alone shouldn’t have the steam issue, linked its in the PC app under beta.

[Previous page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=233)

[Next page](https://forums.unrealengine.com/t/vr-expansion-plugin/68709.md?page=235)
