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

update interaction ray mesh

parent a50ab5e4
No related branches found
No related tags found
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 @@
UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() {
InteractionRay = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Interaction Ray"));
FString PluginContentDir = IPluginManager::Get().FindPlugin(TEXT("WidgetInteraction"))->GetContentDir();
FString ray_mesh_name = TEXT("StaticMesh'") + PluginContentDir + TEXT("/Ray_Mesh.Ray_Mesh'");
auto MeshAsset = ConstructorHelpers::FObjectFinder<UStaticMesh>(*ray_mesh_name);
auto MeshAsset = ConstructorHelpers::FObjectFinder<UStaticMesh>(TEXT("/WidgetInteraction/Ray_Mesh"));
if (MeshAsset.Object != nullptr)
{
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