Skip to content
Snippets Groups Projects
Select Git revision
  • 5542dd725819730aa92a6fe54559dfb9b96900e7
  • 5.3 default protected
  • feature/animation-layering-system
  • feature/MH-audio2face
  • feature/add-new-animations
  • fix/investigate-sync-issues
  • WIP/MA_Dasbach_Bystander
  • thesis/MA_Kuehlem
  • deprecated/4.27
  • thesis/MA_drupp_city-guide
  • thesis/BA_pgriesser_handshake
  • thesis/BA_rschaefer
  • deprecated/4.26
  • thesis/MA_Ye
  • thesis/BA_tsittart
  • thesis/MA_amoedder_natural_gaze_sim
  • thesis/MA_tyroller_backchannels
  • thesis/BA_dvonk_influence-maps
  • thesis/MA_dkuznietsov_emotional-speech
  • fix/random
  • deprecated/4.22
21 results

VHPointing.cpp

Blame
  • PointOfInterest.cpp 951 B
    #include "PointOfInterest.h"
    
    #include "Logging/StructuredLog.h"
    #include "Components/BillboardComponent.h"
    
    DEFINE_LOG_CATEGORY(POILog)
    
    APointOfInterest::APointOfInterest()
    {
    	UE_LOGFMT(POILog, Verbose, "POI instantiated");
    
    	SetRootComponent(CreateDefaultSubobject<USceneComponent>("SceneComponent"));
    
    	auto Billboard = CreateDefaultSubobject<UBillboardComponent>("BillboardComponent");
    
    	static ConstructorHelpers::FObjectFinder<UTexture2D> LocationMarker(TEXT("/Script/Engine.Texture2D'/RWTHVRQuickStart/location_marker.location_marker'"));
    	if(LocationMarker.Succeeded())
    	{
    		Billboard->SetSprite(LocationMarker.Object);
    	}
    	else
    	{
    		UE_LOGFMT(POILog, Verbose, "POILog: Could not find location marker Texture. The Asset might have moved.");
    	}
    	Billboard->AttachToComponent(RootComponent, FAttachmentTransformRules::SnapToTargetIncludingScale);
    	Billboard->SetHiddenInGame(true);
    	Billboard->SetWorldScale3D(FVector(0.1f, 0.1f, 0.1f));
    }