Skip to content
Snippets Groups Projects
Select Git revision
  • 3bcbec9e501f03ef31a6bc860c06a11199a81186
  • main default protected
2 results

README.md

Blame
  • 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);
    };