Skip to content
Snippets Groups Projects
Select Git revision
  • 96b189e610c2e6e1dcbf3a70d3f9bbd8c198cb82
  • master default protected
  • develop protected
  • feature/interaction_cmp_setup_improvement
  • 4.22.1
5 results

VRWidgetInteractionComponent.h

Blame
  • user avatar
    Jonathan Wendt authored
    96b189e6
    History
    VRWidgetInteractionComponent.h 653 B
    // Fill out your copyright notice in the Description page of Project Settings.
    
    #pragma once
    
    #include "CoreMinimal.h"
    #include "Components/WidgetInteractionComponent.h"
    #include "Components/StaticMeshComponent.h"
    
    #include "VRWidgetInteractionComponent.generated.h"
    
    /**
     * 
     */
    UCLASS()
    class WIDGETINTERACTION_API UVRWidgetInteractionComponent : public UWidgetInteractionComponent
    {
    	GENERATED_BODY()
    public:
    	UVRWidgetInteractionComponent();
    
    	void Init();
    
    	void SetVisibility(bool visible);
    
    protected:
    	void OnFire(bool val);
    
    	UPROPERTY(VisibleAnywhere) UStaticMeshComponent* InteractionRay;
    
    	DECLARE_DELEGATE_OneParam(FFireDelegate, bool);
    };