Skip to content
Snippets Groups Projects

Feature/update to new VRPawn structure and adding an interaction ray that is also available in shipping builds

Merged Jan Delember requested to merge feature/update_to_new_VRPawn into develop
All threads resolved!
2 files
+ 14
1
Compare changes
  • Side-by-side
  • Inline

Files

@@ -4,9 +4,18 @@
#include "Runtime/InputCore/Classes/InputCoreTypes.h"
#include "Runtime/Engine/Classes/Components/InputComponent.h"
#include "ConstructorHelpers.h"
#include "VirtualRealityPawn.h"
UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() {}
UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() {
InteractionRay = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Interaction Ray"));
auto MeshAsset = ConstructorHelpers::FObjectFinder<UStaticMesh>(TEXT("StaticMesh'/Engine/BasicShapes/Cone.Cone'"));
if (MeshAsset.Object != nullptr)
{
InteractionRay->SetStaticMesh(MeshAsset.Object);
}
}
void UVRWidgetInteractionComponent::Init()
{
Loading