Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
BaseWristMenuButton.h
Go to the documentation of this file.
1// Copyright(c) Pixo Group. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "GameFramework/Actor.h"
7#include "Components/BoxComponent.h"
8#include "BaseWristMenuButton.generated.h"
9
10DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnWristMenuButtonPressed);
11
15UCLASS(Blueprintable)
16class PIXOCORE_API ABaseWristMenuButton : public AActor
17{
18 GENERATED_BODY()
20public:
22
26 UFUNCTION()
27 void OnBeginOverlapPointingFingerCollision(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
28 UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep,
29 const FHitResult& SweepResult);
30
34 UFUNCTION()
35 void OnEndOverlapPointingFingerCollision(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor,
36 UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
37private:
41 void OnPointingFingerCollisionOverlapChange(AActor* OtherActor, bool IsBeginOverlap) const;
42
43public:
44 UPROPERTY(EditDefaultsOnly)
45 UBoxComponent* PointingFingerCollisionComp;
46
47 UPROPERTY(BlueprintCallable)
48 FOnWristMenuButtonPressed OnWristMenuButtonPressed;
49};
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FOnWristMenuButtonPressed)
Represents a wrist menu button actor.
FOnWristMenuButtonPressed OnWristMenuButtonPressed
UPROPERTY(BlueprintCallable)
UBoxComponent * PointingFingerCollisionComp
UPROPERTY(EditDefaultsOnly)