Skip to content
Snippets Groups Projects
Commit ce9589d0 authored by jwendt's avatar jwendt
Browse files

update interaction ray mesh

parent a50ab5e4
Branches
Tags
1 merge request!2Feature/update to new VRPawn structure and adding an interaction ray that is also available in shipping builds
File added
No preview for this file type
...@@ -12,12 +12,11 @@ ...@@ -12,12 +12,11 @@
UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() { UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() {
InteractionRay = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Interaction Ray")); InteractionRay = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Interaction Ray"));
FString PluginContentDir = IPluginManager::Get().FindPlugin(TEXT("WidgetInteraction"))->GetContentDir(); auto MeshAsset = ConstructorHelpers::FObjectFinder<UStaticMesh>(TEXT("/WidgetInteraction/Ray_Mesh"));
FString ray_mesh_name = TEXT("StaticMesh'") + PluginContentDir + TEXT("/Ray_Mesh.Ray_Mesh'");
auto MeshAsset = ConstructorHelpers::FObjectFinder<UStaticMesh>(*ray_mesh_name);
if (MeshAsset.Object != nullptr) if (MeshAsset.Object != nullptr)
{ {
InteractionRay->SetStaticMesh(MeshAsset.Object); InteractionRay->SetStaticMesh(MeshAsset.Object);
//InteractionRay->SetRelativeRotation(FRotator(0, 90, 0));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment