VR Expansion Plugin

Yeah I assume you aren’t on visual studio, it was auto linking the correct header for everyone.

Every now and then I miss a header and never notice since it links and compiles fine in VS but someone goes to compile eventually for Play station or linux and has issues.

I added the missing header to the repo.

A great plugin and really want to use it but…i have to give up…

There is a compilation tutorial on the website for it…

https://vreue4.com/documentation?section=installation

working fine for me, is it auto dropping it by distance possibly? You may have to increase the distance for it to auto drop in settings.

If I start from the template
then I can use it.
its very finicky.
I was unable to put the latest binaries directly in plugins and have it work
if you start from the template project, it has a number of enums and tags in it so gripping works right.
try using the template project, and making a blank level in it.

some of the same functionality is in VRMP 2 by inchoate elk, which might work for you

If I use the template I get a decent base that can compile for quest.

If you read below I fixed that header. And it depends on the compiler.

The template isn’t more cutting edge, source files in general are as they can be updated daily and I only repackaged the precompiled binaries when a new engine version comes out. The template being on github (and developed against) just means it naturally is always up to date.

I have the template working nicely in both ue4 and 5
but in 5 if I try to build android it comes up with
I use same setup on other 5 projects to build successfully to quest
my ue4 vrep uses config and builds to quest
so IDK
does require a specific sdk?

I’m using VS Community, I’m not sure if it makes any difference. I’ve also had to make some minor fixes, but now it compiles properly! Thank you for the help!

You can find my commit here for further reference: Fix some minor errors · kbence/VRExpansionPlugin@e211341 · GitHub.

No it shouldn’t make any difference, you also shouldn’t have to cast there in that pull request… But its fairly harmless so I added them.

…you also shouldn’t have to cast there…

I though so as well, but VS gave me an error until I did . Weird, UMaterial must be a UMaterialInstance after all… weird.

Hi, I downloaded the VRExpPluginTemplate from the master branch and imported into UE 5.0.3, accepted rebuilding plugins, and Index controllers don’t seem to work well.

I can pick things up, but cannot drop them. I can only release a cube by grabbing it with another hand, but it’s still stuck to me. I was playing around with the grasping hands and grasping physics hands, and sometimes objects get stuck floating in the air. I’ve seen you write that chaos has issues, so is expected?

When I check the “finger curls” box on that board next to the player spawn, it doesn’t seem to do anything. I have read that finger curls may not be available in OpenXR so maybe is expected.

I did test with Vive Wands also and I can drop things with those.

Maybe it is an issue with the grip thresholds? Is there any way to alter them? I feel the grip activates very early.

is my first time with the plugin - am I doing something wrong or is it bugged?

Nothing to do with the index controllers or the plugin, it is indeed a bug with Chaos Physics on the released version of the engine. Bodies that fall asleep don’t wake up again until another simulating body approaches them. You can globally turn off sleeping or lower sleep thresholds on the objects or manually wake them up every time they sleep, however there are other massive physics issues in 5.0.3 to the point where its not worth the effort trying to work around them. I haven’t even tried to port the physics forces to chaos yet as I am unsure if the current behavior is even intended (damping seems to be a factor of 10 stronger than it should be).

Mostly waiting on 5.1 and a hopefully more stable simulation system.

Finger curls should work with the index controllers, in that the full hand tracking transforms are used, curls themselves don’t exist in openXR but the hand tracking extension does function for what it does.

I currently do not suggest using 5.0 for VR until it gets stability and core feature fixes, on the launcher engine version there isn’t actually much of a reason to do so anyway, lumen and nanite do not work for VR in that version anyway.

Hello, thanks for your response. I did download UE 4.27, and the locked 4.27 example branch, after writing my comment and have just been testing it out - it works great, the finger tracking works, the physics grasping hand is really cool, and the controls do function.

I did reach a similar conclusion with UE 4 vs. 5 after seeing that Nanite and Lumen are incompatible with VR, seems UE 4.27 is not really that different from UE 5.0.3 when it comes to VR, as you say.

I look forward to exploring more of the template!

Hi again, I’m wondering if anyone has attempted to change Index grab thresholds? (4.27)

Images: Valve Index grip threshold customisation attempt - Album on Imgur

By default, it uses force, which I find I difficult to use. I changed to Axis, which is simply wrapping the fingers around the grip (“pull” in SteamVR Input). (image 1)

Axis works, but it activates quite early, and I would like to activate at 100% pull, and release at 30%, as a default.

For Action Mappings, Unreal seems to offer no way of changing the activation/release thresholds, so I did some experimenting - I left PrimaryGripRight set to Axis, and unbound PrimaryGripLeft. (still image 1)

I added an Axis Mapping, IndexGripLeft (image 2), set to the left grip axis, and I read in my blueprint child derived from Vive_PawnCharacter. I read and process it (images 3 and 4), and it works, I can pick up and drop the cubes on the table, the nice procedural hand posing is there - but there are no haptics, and I cannot climb, with the left hand. The right hand works.

I’m new to Unreal so I’ve tried a few ways, these events that require modifying the parent class were just my latest attempt. Since I don’t know what’s missing, I’ve looked into manually triggering the PrimaryGripLeft event, but it seems is impossible.

I’ve looked for other references to PrimaryGripLeft, and found none aside from the one pictured, so I can’t find what’s missing.

Any advice?

EDIT: Made a dumbo mistake in the c++ function - forgot to add brackets where I made the comment. That fixed the climbing issue, not sure about haptics. Was just on my way off when I noticed that!

EDIT 2: The haptics will just be some OpenXR function. Don’t worry about it. I think is functional now, so question answered.

you can directly change the thresholds in steamVR’s overlay itself for the different input actions.

Also in 5.1 you should be able to do something of the sort with the new advanced input supporting VR

I did look at using SteamVR Input through the overlay, but it had no effect. I use for almost every game I play so I believe I was using it correctly. From what I’ve read, may be an issue with OpenXR?

I was running as Standalone Game from the editor. Not tried it with VR Preview it has some kind of tracking bug where my playspace moves with the headset after the first launch.

That tracking issue is caused by the new blueprint debugger if you leave a blueprint window open and in front when playing in VR preview.

OpenXR should still work with the overlay as its just a translation layer

Thanks, saw the same tip in your YouTube video on the hand sockets!

Hi , I am trying to migrate my project from veresion 4.26 to 4.27 and I am having these problems:

  1. When doing the migration I receive error and a suggestion to rebuild the project manually:
  @progress 'Compiling C++ source code...' 18%
  [8/44] MyProject4.init.gen.cpp
  @progress 'Compiling C++ source code...' 20%
  [9/44] RotarySwitch.cpp
  @progress 'Compiling C++ source code...' 23%
  [10/44] VR_Character.gen.cpp
  @progress 'Compiling C++ source code...' 25%
  [11/44] AcceleratorLever.gen.cpp
  @progress 'Compiling C++ source code...' 27%
  [12/44] MyProject4GameModeBase.cpp
  @progress 'Compiling C++ source code...' 30%
  [13/44] AcceleratorLever.cpp
  @progress 'Compiling C++ source code...' 32%
  [14/44] VRPawn.gen.cpp
  @progress 'Compiling C++ source code...' 34%
  [15/44] GearLever.cpp
  @progress 'Compiling C++ source code...' 36%
  [16/44] GearLever.gen.cpp
  @progress 'Compiling C++ source code...' 39%
  [17/44] RotarySwitch.gen.cpp
  @progress 'Compiling C++ source code...' 41%
  [18/44] MyProject4GameModeBase.gen.cpp
  @progress 'Compiling C++ source code...' 43%
  [19/44] Module.OpenVRExpansionPlugin.gen.cpp
  @progress 'Compiling C++ source code...' 45%
  [20/44] Module.OpenVRExpansionPlugin.cpp
  @progress 'Compiling C++ source code...' 48%
  [21/44] UE4Editor-OpenVRExpansionPlugin.lib
     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin.exp
  @progress 'Compiling C++ source code...' 50%
  [22/44] UE4Editor-OpenVRExpansionPlugin.dll
     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin.suppressed.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin.suppressed.exp
  @progress 'Compiling C++ source code...' 52%
  [23/44] Module.VRExpansionPlugin.gen.4_of_8.cpp
  @progress 'Compiling C++ source code...' 55%
  [24/44] Module.VRExpansionPlugin.2_of_4.cpp
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(71): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(154): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(221): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(227): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(390): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(262): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(336): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(374): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(424): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/VRAIPerceptionOverrides.cpp(346): error C2668: 'IAISightTargetInterface::CanBeSeenFrom': ambiguous call to overloaded function
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\AIModule/Classes/Perception/AISightTargetInterface.h(40): note: could be 'bool IAISightTargetInterface::CanBeSeenFrom(const FVector &,FVector &,int32 &,float &,const AActor *) const'
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\AIModule/Classes/Perception/AISightTargetInterface.h(32): note: or       'bool IAISightTargetInterface::CanBeSeenFrom(const FVector &,FVector &,int32 &,float &,const AActor *,const bool *,int32 *) const'
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/VRAIPerceptionOverrides.cpp(346): note: while trying to match the argument list '(FVector, FVector, int32, float, const AActor *)'
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/VREPhysicalAnimationComponent.cpp(81): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  @progress 'Compiling C++ source code...' 57%
  [25/44] Module.VRExpansionPlugin.gen.5_of_8.cpp
  @progress 'Compiling C++ source code...' 59%
  [26/44] Module.VRExpansionPlugin.gen.6_of_8.cpp
  @progress 'Compiling C++ source code...' 61%
  [27/44] Module.VRExpansionPlugin.gen.2_of_8.cpp
  @progress 'Compiling C++ source code...' 64%
  [28/44] Module.VRExpansionPlugin.gen.7_of_8.cpp
  @progress 'Compiling C++ source code...' 66%
  [29/44] Module.VRExpansionPlugin.gen.1_of_8.cpp
  @progress 'Compiling C++ source code...' 68%
  [30/44] Module.VRExpansionPlugin.gen.8_of_8.cpp
  C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(28): warning C4996: 'AWheeledVehicle': PhysX is deprecated. Use the AWheeledVehiclePawn from the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(138): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(138): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(140): warning C4996: 'UWheeledVehicleMovementComponent::SetOverrideController': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBaseUtility.h(546): warning C4996: 'UWheeledVehicleMovementComponent': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(143): note: see reference to function template instantiation 'bool UObjectBaseUtility::IsA<To>(void) const' being compiled
          with
          [
              To=UWheeledVehicleMovementComponent
          ]
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(142): note: while compiling class template member function 'To *TCastImpl<From,To,ECastType::UObjectToUObject>::DoCast(UObject *)'
          with
          [
              To=UWheeledVehicleMovementComponent,
              From=UPawnMovementComponent
          ]
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(219): note: see reference to function template instantiation 'To *TCastImpl<From,To,ECastType::UObjectToUObject>::DoCast(UObject *)' being compiled
          with
          [
              To=UWheeledVehicleMovementComponent,
              From=UPawnMovementComponent
          ]
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(219): note: see reference to class template instantiation 'TCastImpl<From,To,ECastType::UObjectToUObject>' being compiled
          with
          [
              From=UPawnMovementComponent,
              To=UWheeledVehicleMovementComponent
          ]
  C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin/Public/Misc/VRWheeledVehicle.h(138): note: see reference to function template instantiation 'To *Cast<UWheeledVehicleMovementComponent,UPawnMovementComponent>(From *)' being compiled
          with
          [
              To=UWheeledVehicleMovementComponent,
              From=UPawnMovementComponent
          ]
  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectBaseUtility.h(546): warning C4996: 'UWheeledVehicleMovementComponent::StaticClass': PhysX is deprecated. Use the UChaosWheeledVehicleMovementComponent fron the ChaosVehiclePhysics Plugin. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  @progress 'Compiling C++ source code...' 70%
  [31/44] Module.VRExpansionPlugin.4_of_4.cpp
  @progress 'Compiling C++ source code...' 73%
  [32/44] Module.VRExpansionPlugin.gen.3_of_8.cpp
  @progress 'Compiling C++ source code...' 75%
  [33/44] Module.VRExpansionEditor.cpp
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionEditor/Private/HandSocketComponentDetails.cpp(63): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionEditor/Private/HandSocketComponentDetails.cpp(107): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionEditor/Private/HandSocketComponentDetails.cpp(121): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionEditor/Private/HandSocketComponentDetails.cpp(155): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionEditor/Private/HandSocketComponentDetails.cpp(165): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionEditor/Private/HandSocketComponentDetails.cpp(231): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
  @progress 'Compiling C++ source code...' 77%
  [34/44] UE4Editor-VRExpansionEditor.lib
     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionEditor\UE4Editor-VRExpansionEditor.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionEditor\UE4Editor-VRExpansionEditor.exp
  @progress 'Compiling C++ source code...' 80%
  [35/44] Module.VRExpansionPlugin.1_of_4.cpp
  @progress 'Compiling C++ source code...' 82%
  [36/44] VR_Character.cpp
  @progress 'Compiling C++ source code...' 84%
  [37/44] VRPawn.cpp
  @progress 'Compiling C++ source code...' 86%
  [38/44] UE4Editor-MyProject4.lib
     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4.exp
  @progress 'Compiling C++ source code...' 89%
  [39/44] UE4Editor-MyProject4.dll
     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4.suppressed.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4.suppressed.exp
  @progress 'Compiling C++ source code...' 91%
  [40/44] Module.VRExpansionPlugin.3_of_4.cpp
  1. When I manually build the soluttion I get two errors (the second one might not be related if so ignore it):

    C2668 ‘IAISightTargetInterface::CanBeSeenFrom’: ambiguous call to overloaded function|TrainEngineerVR|C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Source\VRExpansionPlugin\Private\Misc\VRAIPerceptionOverrides.cpp|346||

    MSB3073|The command C:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\Build.bat MyProject4Editor Win64 Development -Project=C:\Projektas\MyProject4 4.25 - Copy 4.27\TrainEngineerVR.uproject -WaitMutex -FromMsBuild exited with code 6.|TrainEngineerVR|C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets|45||

I tried deleting Intermediate, Binaries and Saved folders and rebuilding but the result is the same.

Also here is the output log of the solution build:

...Build started...
1>------ Skipped Build: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
1>Project not selected to build for  solution configuration 
2>------ Build started: Project: TrainEngineerVR, Configuration: Development_Editor x64 ------
2>Using 'git status' to determine working set for adaptive non-unity build (C:\Projektas\MyProject4 4.25 - Copy 4.27).
2>Building MyProject4Editor...
2>Using Visual Studio 2019 14.29.30145 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
2>Building 10 actions with 24 processes...
2>  [1/10] UE4Editor-MyProject4-0001.lib
2>     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4-0001.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4-0001.exp
2>  [2/10] UE4Editor-OpenVRExpansionPlugin-0001.lib
2>     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin-0001.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin-0001.exp
2>  [3/10] UE4Editor-VRExpansionEditor-0001.lib
2>     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionEditor\UE4Editor-VRExpansionEditor-0001.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\VRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\VRExpansionEditor\UE4Editor-VRExpansionEditor-0001.exp
2>  [4/10] UE4Editor-OpenVRExpansionPlugin-0001.dll
2>     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin-0001.suppressed.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Plugins\VRExpansionPlugin\OpenVRExpansionPlugin\Intermediate\Build\Win64\UE4Editor\Development\OpenVRExpansionPlugin\UE4Editor-OpenVRExpansionPlugin-0001.suppressed.exp
2>  [5/10] UE4Editor-MyProject4-0001.dll
2>     Creating library C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4-0001.suppressed.lib and object C:\Projektas\MyProject4 4.25 - Copy 4.27\Intermediate\Build\Win64\UE4Editor\Development\MyProject4\UE4Editor-MyProject4-0001.suppressed.exp
2>  [6/10] Module.VRExpansionPlugin.2_of_4.cpp
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(71): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(154): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(221): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(227): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Grippables/HandSocketComponent.cpp(390): warning C4996: 'USkeletalMesh::Skeleton': Please do not access  member directly; use USkeletalMesh::GetSkeleton() or USkeletalMesh::SetSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(262): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(336): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(374): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/OptionalRepSkeletalMeshActor.cpp(424): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/VRAIPerceptionOverrides.cpp(346): error C2668: 'IAISightTargetInterface::CanBeSeenFrom': ambiguous call to overloaded function
2>  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\AIModule/Classes/Perception/AISightTargetInterface.h(40): note: could be 'bool IAISightTargetInterface::CanBeSeenFrom(const FVector &,FVector &,int32 &,float &,const AActor *) const'
2>  C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\AIModule/Classes/Perception/AISightTargetInterface.h(32): note: or       'bool IAISightTargetInterface::CanBeSeenFrom(const FVector &,FVector &,int32 &,float &,const AActor *,const bool *,int32 *) const'
2>  C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/VRAIPerceptionOverrides.cpp(346): note: while trying to match the argument list '(FVector, FVector, int32, float, const AActor *)'
2>C:/Projektas/MyProject4 4.25 - Copy 4.27/Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Misc/VREPhysicalAnimationComponent.cpp(81): warning C4996: 'USkeletalMesh::RefSkeleton': Please do not access  member directly; use USkeletalMesh::GetRefSkeleton() or USkeletalMesh::SetRefSkeleton(). Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\Build.bat" MyProject4Editor Win64 Development -Project="C:\Projektas\MyProject4 4.25 - Copy 4.27\TrainEngineerVR.uproject" -WaitMutex -FromMsBuild" exited with code 6.
2>Done building project "TrainEngineerVR.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========

I would appreciate any help that you could provide!

you are compiling that for UE5 somehow

Wrong engine version