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

<div class="post-metadata">

**Author:** ![Kmack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kmack/32/706181_2.png) [@Kmack](https://forums.unrealengine.com/u/Kmack)\
**Post date:** [November 10, 2018, 8:11am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2913 "2018-11-10T08:11:22Z")

</div>

Hi there!  
I’m working on updating a project to 4.21 and running into the following:

```auto

1> [3/10] UE4Editor-VRExpansionPlugin-5385.lib
1> Creating library E:\Perforce\MyGame\UE4\MyGame\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionPlugin\UE4Editor-VRExpansionPlugin-5385.lib and object E:\Perforce\MyGame\UE4\MyGame\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionPlugin\UE4Editor-VRExpansionPlugin-5385.exp
1> [6/10] UE4Editor-VRExpansionPlugin-5385.dll
1> Creating library E:\Perforce\MyGame\UE4\MyGame\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionPlugin\UE4Editor-VRExpansionPlugin-5385.suppressed.lib and object E:\Perforce\MyGame\UE4\MyGame\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionPlugin\UE4Editor-VRExpansionPlugin-5385.suppressed.exp
1>Module.VRExpansionPlugin.1_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct FGameplayDebuggerShape__cdecl FGameplayDebuggerShape::MakeSegment(struct FVector const &,struct FVector const &,struct FColor const &,class FString const &)" (__imp_?MakeSegment@FGameplayDebuggerShape@@SA?AU1@AEBUFVector@@0AEBUFColor@@AEBVFString@@@Z) referenced in function "public: virtual void__cdecl UAISenseConfig_Sight_VR::DescribeSelfToGameplayDebugger(class UAIPerceptionComponent const *,class FGameplayDebuggerCategory *)const " (?DescribeSelfToGameplayDebugger@UAISenseConfig_Sight_VR@@UEBAXPEBVUAIPerceptionComponent@@PEAVFGameplayDebuggerCategory@@@Z)
1>Module.VRExpansionPlugin.1_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct FGameplayDebuggerShape__cdecl FGameplayDebuggerShape::MakeCylinder(struct FVector const &,float,float,struct FColor const &,class FString const &)" (__imp_?MakeCylinder@FGameplayDebuggerShape@@SA?AU1@AEBUFVector@@MMAEBUFColor@@AEBVFString@@@Z) referenced in function "public: virtual void__cdecl UAISenseConfig_Sight_VR::DescribeSelfToGameplayDebugger(class UAIPerceptionComponent const *,class FGameplayDebuggerCategory *)const " (?DescribeSelfToGameplayDebugger@UAISenseConfig_Sight_VR@@UEBAXPEBVUAIPerceptionComponent@@PEAVFGameplayDebuggerCategory@@@Z)
1>Module.VRExpansionPlugin.1_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public:__cdecl FGameplayDebuggerShape::~FGameplayDebuggerShape(void)" (__imp_??1FGameplayDebuggerShape@@QEAA@XZ) referenced in function "public: virtual void__cdecl UAISenseConfig_Sight_VR::DescribeSelfToGameplayDebugger(class UAIPerceptionComponent const *,class FGameplayDebuggerCategory *)const " (?DescribeSelfToGameplayDebugger@UAISenseConfig_Sight_VR@@UEBAXPEBVUAIPerceptionComponent@@PEAVFGameplayDebuggerCategory@@@Z)
1>Module.VRExpansionPlugin.1_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void__cdecl FGameplayDebuggerCategory::AddTextLine(class FString const &)" (__imp_?AddTextLine@FGameplayDebuggerCategory@@QEAAXAEBVFString@@@Z) referenced in function "public: virtual void__cdecl UAISenseConfig_Sight_VR::DescribeSelfToGameplayDebugger(class UAIPerceptionComponent const *,class FGameplayDebuggerCategory *)const " (?DescribeSelfToGameplayDebugger@UAISenseConfig_Sight_VR@@UEBAXPEBVUAIPerceptionComponent@@PEAVFGameplayDebuggerCategory@@@Z)
1>Module.VRExpansionPlugin.1_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void__cdecl FGameplayDebuggerCategory::AddShape(struct FGameplayDebuggerShape const &)" (__imp_?AddShape@FGameplayDebuggerCategory@@QEAAXAEBUFGameplayDebuggerShape@@@Z) referenced in function "public: virtual void__cdecl UAISenseConfig_Sight_VR::DescribeSelfToGameplayDebugger(class UAIPerceptionComponent const *,class FGameplayDebuggerCategory *)const " (?DescribeSelfToGameplayDebugger@UAISenseConfig_Sight_VR@@UEBAXPEBVUAIPerceptionComponent@@PEAVFGameplayDebuggerCategory@@@Z)
1>E:\Perforce\MyGame\UE4\MyGame\Plugins\VRExpansionPlugin\VRExpansionPlugin\Binaries\Win64\UE4Editor-VRExpansionPlugin-5385.dll : fatal error LNK1120: 5 unresolved externals
1> 

```

Any thoughts on what I’m running into here?

Thanks!  
(And thanks for making such a wonderful plugin!)

---

<div class="post-metadata">

**Author:** ![J\_Tox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/j_tox/32/1040506_2.png) [@J\_Tox](https://forums.unrealengine.com/u/J_Tox)\
**Post date:** [November 10, 2018, 10:16am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2914 "2018-11-10T10:16:37Z")

</div>

> [@KevODoom](#):
>
> Hi there!  
> I’m working on updating a project to 4.21 and running into the following:
> 
> Any thoughts on what I’m running into here?
> 
> Thanks!  
> (And thanks for making such a wonderful plugin!)

I went trough a similar problem and the solution was to remove from your project folder :  
\*\*.vs , Binaries, Build, DerivedDataCache,Intermediate and the .sln file. \*\*  
and after right click on your **.uproject and generate VS project files**  
and **BUILD.**

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [November 10, 2018, 11:42am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2915 "2018-11-10T11:42:11Z")

</div>

Is there a blueprint version I can download?

---

<div class="post-metadata">

**Author:** ![Kmack](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kmack/32/706181_2.png) [@Kmack](https://forums.unrealengine.com/u/Kmack)\
**Post date:** [November 10, 2018, 4:08pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2916 "2018-11-10T16:08:31Z")

</div>

> [@J\_Tox](#):
>
> I went trough a similar problem and the solution was to remove from your project folder :  
> \*\*.vs , Binaries, Build, DerivedDataCache,Intermediate and the .sln file. \*\*  
> and after right click on your **.uproject and generate VS project files**  
> and **BUILD.**

Thanks so much J\_Tox!

I had blown out my Intermediates, but hadn’t thought to clear the .vs, Binaries, Build, and the DDC - that fixed it.

---

<div class="post-metadata">

**Author:** ![ZeroVector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroVector](https://forums.unrealengine.com/u/ZeroVector)\
**Post date:** [November 10, 2018, 4:56pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2917 "2018-11-10T16:56:24Z")

</div>

> [@](#):
>
> No its pretty easy, you can throw pretty much the entire set of BPs in the grapple gun into the character inside of a function that you call on tick (when the movement mode is active) and it would just work.

I have tried adding the grapple gun BP to the Vive Pawn Character \> Event Graph and added the variables needed… Also I added Grapple text for the MovementModes menu and updated a link to the node for the Cycle Movement Modes function… Also on the Cycle Movement Modes function I did try on the grapple node to link to the SET node for the others movement modes and also as its set there now on the SET node which Climbing Mode is linked too… But when I try to cycle through the movement modes using the grip on the vive motion controller it does not show the Grapple text for the Grapple mode. So cant use the Grapple gun function I have add to the character BP. I have attached 3 screenshots to help you understand what I have done… Took a while doing screenshots into photoshop and piecing together for the Vive Pawn Character \> Event Graph LOL… I had to split the Vive Pawn Character \> Event Graph into 2 parts cause the file size was two big… Wish they would have a save out to image command in UE4 hehehehe… If you could help me with that would be great… I still learning stuff and have just started vr dev UE4…

---

<div class="post-metadata">

**Author:** ![ZeroVector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroVector](https://forums.unrealengine.com/u/ZeroVector)\
**Post date:** [November 11, 2018, 7:03pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2918 "2018-11-11T19:03:58Z")

</div>

Ok been working at it again and starting to understand what you meant… In the image below of the VivePawnCharacter \> EventGraph, I have now used the existing Event tick to call the Grapple Function I have created. Then in the newly created Grapple Function within the VivePawnCharacter BP I have copied the code, events and variables… Then added the Switch on movementMode for left and right and also in the Cycle Movement Modes set the Movement Mode Left/Right Enum to be set to Grapple as default… So when the game starts the movement mode above the controller say Grapple but I can still not use the grapple… Hope I am making some kinda progress LOL… Am I on the right track? Any help would be thankful…

---

<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:** [November 11, 2018, 7:15pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2919 "2018-11-11T19:15:33Z")

</div>

> [@ZeroVector](#):
>
> Ok been working at it again and starting to understand what you meant… In the image below of the VivePawnCharacter \> EventGraph, I have now used the existing Event tick to call the Grapple Function I have created. Then in the newly created Grapple Function within the VivePawnCharacter BP I have copied the code, events and variables… Then added the Switch on movementMode for left and right and also in the Cycle Movement Modes set the Movement Mode Left/Right Enum to be set to Grapple as default… So when the game starts the movement mode above the controller say Grapple but I can still not use the grapple… Hope I am making some kinda progress LOL… Am I on the right track? Any help would be thankful…

It would likely be easier for you to package everything into an actor component and keep it out of the main character.

---

<div class="post-metadata">

**Author:** ![ZeroVector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroVector](https://forums.unrealengine.com/u/ZeroVector)\
**Post date:** [November 11, 2018, 7:33pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2920 "2018-11-11T19:33:20Z")

</div>

Oh, Now I am lost… LOL… Originally you said “No its pretty easy, you can throw pretty much the entire set of BPs in the grapple gun into the character inside of a function that you call on tick (when the movement mode is active) and it would just work.” So I have done that… Its within a function in the character blueprint… But if the actor component is best I am willing to try… But I am very new to VR stuff and have done a bit of UE4 stuff so have a basic understand… I’ll work out how to package everything into an actor component… Step by step I think I’ll have to do … Really would love to get working…🙂

---

<div class="post-metadata">

**Author:** ![ZeroVector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroVector](https://forums.unrealengine.com/u/ZeroVector)\
**Post date:** [November 11, 2018, 7:47pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2921 "2018-11-11T19:47:08Z")

</div>

There maybe some confusion, my original post was as follows… “I have been playing around with the GrappleGun and its great! I have been trying to set it up in the MovementMode to switch to it using the grip on the motion controller rather than by picking it up and dropping it… But I am haven no luck… Is a lot of work to achieve? Any help would be appreciated”… So would the actor component be the same as the GrappleGun an object you can pickup? I have been trying to get it so you do not pick it up as an item, but selected it through the Movement Mode Grip on the controller… Sorry about , I do appreciate you must be busy…

---

<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:** [November 11, 2018, 11:07pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2922 "2018-11-11T23:07:42Z")

</div>

> [@ZeroVector](#):
>
> There maybe some confusion, my original post was as follows… “I have been playing around with the GrappleGun and its great! I have been trying to set it up in the MovementMode to switch to it using the grip on the motion controller rather than by picking it up and dropping it… But I am haven no luck… Is a lot of work to achieve? Any help would be appreciated”… So would the actor component be the same as the GrappleGun an object you can pickup? I have been trying to get it so you do not pick it up as an item, but selected it through the Movement Mode Grip on the controller… Sorry about , I do appreciate you must be busy…

Yeah I was just mentioning that moving it to an actor component gets all of those nodes out of there, it also would be mostly intact to how it was while in the grapple gun, either way works.

---

<div class="post-metadata">

**Author:** ![thedog88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thedog88](https://forums.unrealengine.com/u/thedog88)\
**Post date:** [November 11, 2018, 11:24pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2923 "2018-11-11T23:24:14Z")

</div>

im so lost with . i was able to install it but are there no example projects that show you how everything is setup? reaching in the dark right now it seems.

---

<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:** [November 12, 2018, 12:36am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2924 "2018-11-12T00:36:06Z")

</div>

> [@thedog88](#):
>
> im so lost with . i was able to install it but are there no example projects that show you how everything is setup? reaching in the dark right now it seems.

That would be what the template project is for…

I’ll warn you though that its intended to be an advanced plugin, if you are newer you may want to stay away from it for now.

---

<div class="post-metadata">

**Author:** ![Kagura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kagura/32/783844_2.png) [@Kagura](https://forums.unrealengine.com/u/Kagura)\
**Post date:** [November 12, 2018, 3:37am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2925 "2018-11-12T03:37:28Z")

</div>

Hello! just a question here im new to vr expansion  
im trying to access a sphere collision that i put on Vive\_PawnCharacter

[[Album] imgur.com ![](https://i.imgur.com/fj7VQPy.png?fb "imgur.com") ](https://imgur.com/a/T8fXiMW)

from a Button Actor that i Made

[[Album] imgur.com ![](https://i.imgur.com/AgclsAO.png?fb "imgur.com") ](https://imgur.com/a/7td9C5x)

but my cast always fails am i doing the casting wrong?  
i want to react to the sphere collision component, overlapping my buttons box collision  
Im doing it wrong?

---

<div class="post-metadata">

**Author:** ![ZeroVector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZeroVector](https://forums.unrealengine.com/u/ZeroVector)\
**Post date:** [November 12, 2018, 7:33am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2926 "2018-11-12T07:33:34Z")

</div>

> [@](#):
>
> Yeah I was just mentioning that moving it to an actor component gets all of those nodes out of there, it also would be mostly intact to how it was while in the grapple gun, either way works.

Thanks , Best way to learn is to dabble… LOL… I’ll keep playing around with it until I get it right… I am a newby at and I’ll just leave it to time and practice till I understand more… I’ll let you know when I have worked it out… I like a good challenge and it be a good bit of learning to move forward with VR stuff… Thanks for given your time 🙂

---

<div class="post-metadata">

**Author:** ![morningninrom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@morningninrom](https://forums.unrealengine.com/u/morningninrom)\
**Post date:** [November 12, 2018, 9:02am UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2927 "2018-11-12T09:02:42Z")

</div>

Hi,I’m new for leaning it, I just want to realize the function of grabbing objects. I read your example template. Sorry, I’m just a novice. In my opinion, there are many irrelevant contents that make it difficult for me to understand part of the code. I also read the function introduction in your plug-in, but it doesn’t give an example, which makes it difficult for me to understand. I want to ask you what advice you have for achieving just grabbing objects. Thank you.

---

<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:** [November 12, 2018, 1:10pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2928 "2018-11-12T13:10:18Z")

</div>

> [@morningninrom](#):
>
> Hi,I’m new for leaning it, I just want to realize the function of grabbing objects. I read your example template. Sorry, I’m just a novice. In my opinion, there are many irrelevant contents that make it difficult for me to understand part of the code. I also read the function introduction in your plug-in, but it doesn’t give an example, which makes it difficult for me to understand. I want to ask you what advice you have for achieving just grabbing objects. Thank you.

The Template implements multiplayer and a bunch of framework for testing, so yes, it is more bloated than simple gripping.

[https://bitbucket.org//vrexpansionplugin/wiki/Gripping%20System%20Tutorials](https://bitbucket.org//vrexpansionplugin/wiki/Gripping%20System%20Tutorials)

Has the start of a basics overview

---

<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:** [November 12, 2018, 1:14pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2929 "2018-11-12T13:14:57Z")

</div>

> [@Arukaito](#):
>
> Hello! just a question here im new to vr expansion  
> im trying to access a sphere collision that i put on Vive\_PawnCharacter  
> [https://imgur.com/a/T8fXiMW](https://imgur.com/a/T8fXiMW)  
> from a Button Actor that i Made  
> [https://imgur.com/a/7td9C5x](https://imgur.com/a/7td9C5x)  
> but my cast always fails am i doing the casting wrong?  
> i want to react to the sphere collision component, overlapping my buttons box collision  
> Im doing it wrong?

No, that should technically work, unsure about how your class is setup though since you made a custom button actor and the “box” component could be anything.

Did you try using the plugins built in button class component? It should handle pretty much everything for you already, since you are new I am unsure if you knew that the class exists?

---

<div class="post-metadata">

**Author:** ![Sooth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sooth](https://forums.unrealengine.com/u/Sooth)\
**Post date:** [November 12, 2018, 4:49pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2930 "2018-11-12T16:49:17Z")

</div>

I looking at dagger stabbing. With grippable skeletal mesh no issue grasping dagger with ‘interacts with physics’. When dagger stabs target want it to penetrate target up to the hilt and then allowed to be drawn out (with some level of fiction). I tried using a physics actor to join the hit target to tip of the dagger and allows me to restrict the flow of the dagger along the blade but really not a complete solution. I see we could implement a custom grip. Would is the best approach or am I missing something?

---

<div class="post-metadata">

**Author:** ![Sooth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sooth](https://forums.unrealengine.com/u/Sooth)\
**Post date:** [November 12, 2018, 5:02pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2931 "2018-11-12T17:02:52Z")

</div>

Dagger stabbing: Maybe I need to implement a grip script? extending class UGS\_Default

---

<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:** [November 12, 2018, 5:36pm UTC](https://forums.unrealengine.com/t/vr-expansion-plugin/68709/2932 "2018-11-12T17:36:31Z")

</div>

> [@Sooth](#):
>
> Dagger stabbing: Maybe I need to implement a grip script? extending class UGS\_Default

You can do it with a custom grip OR a grip script. If it is a one off effect only for a one base class type of weapon it would probably be faster to make it a custom grip.

If you wanted it to be re-useable logic across multiple base classes then a grip script would be better.

You can also live change the type of grip, IE: when it starts penetrating turn it into a custom grip and run the pull out logic, when it is fully free again then go back to another grip type, ect.

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

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