# 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:** 202

<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:** [June 21, 2020, 12:05pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4117 "2020-06-21T12:05:23Z")

</div>

> [@e3pojedi](#):
>
> I removed the SteamVR plugin because the build was telling me to add “PrecompileForTargets = PrecompileTargetsType.Any;” to SteamVR.build.cs and it would keep coming up with the same error, even if I added and saved it. @MaSe87

You can’t compile steamvr for android and your log there was referencing android.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_63759055](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63759055](https://forums.unrealengine.com/u/anonymous_user_63759055)\
**Post date:** [June 21, 2020, 12:55pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4118 "2020-06-21T12:55:11Z")

</div>

I tried to compile and it can be achieve. Only compile and linking tested. Haven’t actually run to see if something crashes. Changes are in [fork](https://github.com/RaceTheMaSe/VRExpansionPlugin/commit/214e9f9007b8fa9d9b32103c622bd820409c0bdf)

Although the purpose of including the plugin on Android is not clear to me.

---

<div class="post-metadata">

**Author:** ![Soulast](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/soulast/32/1099193_2.png) [@Soulast](https://forums.unrealengine.com/u/Soulast)\
**Post date:** [June 21, 2020, 4:59pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4119 "2020-06-21T16:59:51Z")

</div>

is there a way to set relative or add offset to “VrReplicatedCamera” height? So far I did try to add with Tick Relative Location or AddOffset but with no success.

---

<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:** [June 22, 2020, 1:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4120 "2020-06-22T13:08:29Z")

</div>

> [@Soulast](#):
>
> is there a way to set relative or add offset to “VrReplicatedCamera” height? So far I did try to add with Tick Relative Location or AddOffset but with no success.

The capsule component has an offset variable that you can set to it.

_Edit_ Also there is a CustomOffset var in the parent relative attachment if you want to change a mesh height or something. And the Netsmoother itself can be offset to move everything.

---

<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:** [June 22, 2020, 1:44pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4121 "2020-06-22T13:44:35Z")

</div>

> [@MaSe87](#):
>
> I tried to compile and it can be achieve. Only compile and linking tested. Haven’t actually run to see if something crashes. Changes are in [fork](https://github.com/RaceTheMaSe/VRExpansionPlugin/commit/214e9f9007b8fa9d9b32103c622bd820409c0bdf)
> 
> Although the purpose of including the plugin on Android is not clear to me.

It won’t crash with those changes, it jut won’t do anything, i pulled them into main.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1b73adcf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1b73adcf](https://forums.unrealengine.com/u/anonymous_user_1b73adcf)\
**Post date:** [June 22, 2020, 9:26pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4122 "2020-06-22T21:26:32Z")

</div>

Hey, I’m kind of confused on the recommended approach for adding finger tracking (for the Knuckle controllers) to a full-body mesh in 4.25. I thought I read somewhere that the OpenInputPlugin was being replaced by something in 4.25, but I can’t find that information anymore. Do you know what I might be thinking of?

In the end I want finger tracking on a full-body mesh that can potentially work for other hand tracking technologies, like the Oculus Quest’s hand tracking. My character mesh is going to use IK for following the VR headset and controllers. I’m just trying to figure out how I should tackle the finger tracking part.

---

<div class="post-metadata">

**Author:** ![Xanthusbass](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xanthusbass](https://forums.unrealengine.com/u/Xanthusbass)\
**Post date:** [June 23, 2020, 9:29am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4125 "2020-06-23T09:29:59Z")

</div>

I’m loving plugin but i’m having issues with teleport whenever I hold a weapon the teleport seems to overlap and I can no longer teleport using the hand holding the weapon i have played with collisions etc but haven’t had any success any advice would be great thank you in advance 🙂

---

<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:** [June 23, 2020, 12:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4126 "2020-06-23T12:08:53Z")

</div>

> [@Decriment](#):
>
> Hey, I’m kind of confused on the recommended approach for adding finger tracking (for the Knuckle controllers) to a full-body mesh in 4.25. I thought I read somewhere that the OpenInputPlugin was being replaced by something in 4.25, but I can’t find that information anymore. Do you know what I might be thinking of?
> 
> In the end I want finger tracking on a full-body mesh that can potentially work for other hand tracking technologies, like the Oculus Quest’s hand tracking. My character mesh is going to use IK for following the VR headset and controllers. I’m just trying to figure out how I should tackle the finger tracking part.

The open input plugin still exists, the input side of it was just removed since the valve implementation is native to the engine now as of 4.24, so it just handles the skeletal part.

As for quest hand tracking, Oculus is generally good at providing their own examples (they have a hand tracking one in their branch) so I generally don’t do as much for their API. I had also held off as I saw a pathway for skeletal tracking being implemented into the engine and figured it would be natively handled eventually, sadly I haven’t seen much progress on that recently (likely due to focus switching to OpenXR which doesn’t have a skeletal extension yet AFAIK).

I’ll note that you can still also just use per finger blends with the curl values from OpenInput on a full body mesh as well.

---

<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:** [June 23, 2020, 12:12pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4127 "2020-06-23T12:12:10Z")

</div>

> [@Xanthusbass](#):
>
> I’m loving plugin but i’m having issues with teleport whenever I hold a weapon the teleport seems to overlap and I can no longer teleport using the hand holding the weapon i have played with collisions etc but haven’t had any success any advice would be great thank you in advance 🙂

Make the teleport trace ignore held objects or ignore the channel that the teleport controller traces on.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3422fd0c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3422fd0c](https://forums.unrealengine.com/u/anonymous_user_3422fd0c)\
**Post date:** [June 23, 2020, 5:14pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4128 "2020-06-23T17:14:16Z")

</div>

I’m trying everything … ☹

[https://i.gyazo.com/e0029179abf794b7…99f975914a.png  
  ![e0029179abf794b78654a199f975914a.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/7/e7da27aa92854e8336635db0dbba6fbacc4baced.png)](https://i.gyazo.com/e0029179abf794b78654a199f975914a.png)

how do I make an auto animation at the door?  
Has anybody succeeded and can you give me a solution?

---

<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:** [June 23, 2020, 5:27pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4129 "2020-06-23T17:27:49Z")

</div>

> [@GTOokami](#):
>
> I’m trying everything … ☹  
> how do I make an auto animation at the door?  
> Has anybody succeeded and can you give me a solution?

What do you mean auto animation? It opening for you? Just use a door that isn’t simulating physics, or stop it from simulating physics, then your timeline should work fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3422fd0c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3422fd0c](https://forums.unrealengine.com/u/anonymous_user_3422fd0c)\
**Post date:** [June 23, 2020, 5:36pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4130 "2020-06-23T17:36:04Z")

</div>

> [@](#):
>
> What do you mean auto animation? It opening for you? Just use a door that isn’t simulating physics, or stop it from simulating physics, then your timeline should work fine.

physics is fine, indeed I thank you.  
but I’m trying to implement the possibility of having it open by an NPC, so I wanted to open the door automatically, but the door rotates on itself if I apply a rotation.

The physics I need to open the door is beautiful, but my NPC needs an automatic door xD

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3422fd0c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3422fd0c](https://forums.unrealengine.com/u/anonymous_user_3422fd0c)\
**Post date:** [June 23, 2020, 7:33pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4131 "2020-06-23T19:33:10Z")

</div>

Now I am following some constraint guide, and I managed to apply an automatic force, but the door opens automatically only if I lower the handle …  
I tried to set the variables:

Gripped TRUE  
Locked FALSE  
Closed FALSE

But nothing …  
if I do not lower the handle the automatic rotation does not work

I know I’m disturbing, also because mine is a plus, sorry and thanks anyway for the support of splendid plugin 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3422fd0c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3422fd0c](https://forums.unrealengine.com/u/anonymous_user_3422fd0c)\
**Post date:** [June 23, 2020, 7:56pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4133 "2020-06-23T19:56:33Z")

</div>

Ok, I solved it,  
I set up an Angular Motor at Constraint,  
I enabled the simulation in “Set Simulate Physics”

and now the door opens automatically.

Thanks anyway for your interest.  
Sorry if I disturbed you for a stupid thing 🙂

---

<div class="post-metadata">

**Author:** ![joelbenjamin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joelbenjamin/32/754794_2.png) [@joelbenjamin](https://forums.unrealengine.com/u/joelbenjamin)\
**Post date:** [June 23, 2020, 8:35pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4134 "2020-06-23T20:35:59Z")

</div>

Sorry, still struggling. Thought I had it.  
Have a flight stick for ship (modified “Car”), need to be able to pull trigger on joystick to fire weapons

Switched it to a “Throttle”, which has an Event for On Was Used  
But not an event for Use Stopped, which means trigger has to be pulled constantly rather than held down

Different way to approach ?

---

<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:** [June 24, 2020, 1:17am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4135 "2020-06-24T01:17:14Z")

</div>

> [@joelbenjamin](#):
>
> Sorry, still struggling. Thought I had it.  
> Have a flight stick for ship (modified “Car”), need to be able to pull trigger on joystick to fire weapons
> 
> Switched it to a “Throttle”, which has an Event for On Was Used  
> But not an event for Use Stopped, which means trigger has to be pulled constantly rather than held down
> 
> Different way to approach ?

All grippables have an OnUsed and OnEndUsed in side of them, you would just have to throw public events from your child class to notify outside classes about it. And make sure that it has used flags set of course if using the template.

Alternatively, you could also directly bind to input in the actor and sample inputs yourself.

---

<div class="post-metadata">

**Author:** ![Qianfulong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Qianfulong](https://forums.unrealengine.com/u/Qianfulong)\
**Post date:** [June 24, 2020, 10:57am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4136 "2020-06-24T10:57:30Z")

</div>

Hi,  
i am struggleing with getting buttons to work with remote objects, in my example a door in another BP. I am trying with one of the Buttons that is already in the demo scene which has the VRButtonComponent already set up. Then i have a door BP for which i added the “Electrical Object” interface under “Class Settings” -\> “Implemented Interfaces”. I also added the “Event Current State Change” to the door’s Event Graph. So as far as i understand, i should now be able to add the door object (placed in the level) to the “Electrical Targets” array in the Button object (also placed in the level):

 ![Button.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/889835c49ce5a04382544536b5233c3e2f3f9e12.jpeg)  
However the slot won’t accept the door object as “Electrical Object” for some reason.

I also checked the example in the demo level where the Button object is connected to the MirrorActor object.

 ![MirrorButton.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/f/ef592d92ed0a839eb5739902559cfdbd03da27db.jpeg)

I can’t see the difference between setup and the one i have with my door, since the only thing the MirrorActor does is to implement the “Electrical Object” interface, but obviously i am missing something here. Strangely, if i add a new MirrorActor to the level (which should be the exact same thing as the one already put in the level by you) then newly placed MirrorActor will also be NOT accepted as electrical objects by the Button objects. So do you have any hints on why would be or even better s short explanation on how to set up correctly?  
Cheers!

---

<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:** [June 24, 2020, 1:41pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4137 "2020-06-24T13:41:09Z")

</div>

> [@Qianfulong](#):
>
> Hi,  
> i am struggleing with getting buttons to work with remote objects, in my example a door in another BP. I am trying with one of the Buttons that is already in the demo scene which has the VRButtonComponent already set up. Then i have a door BP for which i added the “Electrical Object” interface under “Class Settings” -\> “Implemented Interfaces”. I also added the “Event Current State Change” to the door’s Event Graph. So as far as i understand, i should now be able to add the door object (placed in the level) to the “Electrical Targets” array in the Button object (also placed in the level):
> 
> I can’t see the difference between setup and the one i have with my door, since the only thing the MirrorActor does is to implement the “Electrical Object” interface, but obviously i am missing something here. Strangely, if i add a new MirrorActor to the level (which should be the exact same thing as the one already put in the level by you) then newly placed MirrorActor will also be NOT accepted as electrical objects by the Button objects. So do you have any hints on why would be or even better s short explanation on how to set up correctly?  
> Cheers!

its working fine for me, adding the interface to the gun in the level and implementing the function, then adding a new element in the buttons array and selecting the gun.

Keep in mind that whole electrical thing is just part of that one buttons blueprint, its not related to the plugins buttons. Its a construct added to show something useful that you could do with a button.

---

<div class="post-metadata">

**Author:** ![Qianfulong](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Qianfulong](https://forums.unrealengine.com/u/Qianfulong)\
**Post date:** [June 24, 2020, 2:32pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4138 "2020-06-24T14:32:11Z")

</div>

> [@](#):
>
> its working fine for me, adding the interface to the gun in the level and implementing the function, then adding a new element in the buttons array and selecting the gun.
> 
> Keep in mind that whole electrical thing is just part of that one buttons blueprint, its not related to the plugins buttons. Its a construct added to show something useful that you could do with a button.

is rly strange. I tried and found, that i can add the gun object “as is” to the button array even without adding the interface “Electrical Object” to the class settings of GunBase BP, nor the event “EventCurrentStateChange”, nor the function “CurrentStateChange” to it’s event graph…

So let’s try with an empty virgin BP:

1. Create BP of type “Actor” (BP\_Test) and add the interface  

2. Add the event to the event graph

 ![VirginInterface.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/9/19000e247f3adb8b84b6f8608b033d97c498df12.png)

1. Place BP\_Test in level and try to add it to the Button array –\> Fail.

Would you try to reproduce that?

Edit: In the meantime i found that most of the actors that are lready in the demo scene, e.g. the Barrel, the Door, the gripable cubes, … can be added to the button’s electric objects array “as is”. No need to add the interface or function whatsoever. However creating my own actor, putting it into the level and trying to add tht to the array wont work. What makes those actors already placed in the demo scene different from mine?

---

<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:** [June 24, 2020, 3:55pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/4139 "2020-06-24T15:55:33Z")

</div>

> [@Qianfulong](#):
>
> is rly strange. I tried and found, that i can add the gun object “as is” to the button array even without adding the interface “Electrical Object” to the class settings of GunBase BP, nor the event “EventCurrentStateChange”, nor the function “CurrentStateChange” to it’s event graph…
> 
> So let’s try with an empty virgin BP:
> 
> 1. Place BP\_Test in level and try to add it to the Button array –\> Fail.
> 
> Would you try to reproduce that?
> 
> Edit: In the meantime i found that most of the actors that are lready in the demo scene, e.g. the Barrel, the Door, the gripable cubes, … can be added to the button’s electric objects array “as is”. No need to add the interface or function whatsoever. However creating my own actor, putting it into the level and trying to add tht to the array wont work. What makes those actors already placed in the demo scene different from mine?

Well yeah…its just a tarray of object references that it tries to call the interface on. If they don’t implement the interface than it just won’t do anything.

Try compiling and saving your edited level, there is no difference, it is just the editors actor selection ui.

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

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