Added UI for adjusting TableHight and Scale

This commit is contained in:
DuOtto
2026-07-30 19:31:20 +02:00
parent 85ab894665
commit c9a5c2c6ca
9 changed files with 16 additions and 37 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16 -37
View File
@@ -34,50 +34,29 @@ public:
void SpawnNewHand(const FVector& PalmCenter, const FHandPacketHand& NewHand); void SpawnNewHand(const FVector& PalmCenter, const FHandPacketHand& NewHand);
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand Tracking|Debug") UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") ADetectionManager* DM;
ADetectionManager* DM; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") TArray<AHandActor*> HandList;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") TArray<AHandActor*> DeadHands;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") int32 HandAllocationDistance = FMath::Square(1000);;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") TSubclassOf<class AHandActor> HandActorClass;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") TSubclassOf<class AFingerTip> FingerTipClass;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") UPROPERTY(BlueprintAssignable) FOnHandAdded OnHandAdded;
TArray<AHandActor*> HandList; UPROPERTY(BlueprintAssignable) FOnHandRemoved OnHandRemoved;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand") UFUNCTION(BlueprintCallable) void AddDeadHand(AHandActor* DeadHand);
TArray<AHandActor*> DeadHands; UFUNCTION(BlueprintCallable, BlueprintPure) TArray<AHandActor*>& GetHandList();
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand")
int32 HandAllocationDistance = FMath::Square(1000);;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand")
TSubclassOf<class AHandActor> HandActorClass;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hand")
TSubclassOf<class AFingerTip> FingerTipClass;
UFUNCTION(BlueprintCallable)
void AddDeadHand(AHandActor* DeadHand);
UPROPERTY(BlueprintAssignable)
FOnHandAdded OnHandAdded;
UPROPERTY(BlueprintAssignable)
FOnHandRemoved OnHandRemoved;
UFUNCTION(BlueprintCallable)
TArray<AHandActor*>& GetHandList();
//Gestures //Gestures
UPROPERTY(VisibleAnywhere, Category = "Gesture") UGestureManagerComponent* GestureManager;
UPROPERTY(VisibleAnywhere, Category = "Gesture") UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Gesture") UDataTable* GestureDefinitionTable;
UGestureManagerComponent* GestureManager; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Gesture") UDataTable* GestureActionTable;
const TArray<AHandActor*>& GetHandList() const { return HandList; } const TArray<AHandActor*>& GetHandList() const { return HandList; }
// GestureManager.h — add these //Gesture Actions, Icons
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Gesture") UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Scale") float UEUnitsPerUnit = 10.f;
UDataTable* GestureDefinitionTable; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Scale") float TableHeight = -650.f;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Gesture")
UDataTable* GestureActionTable;
private: private:
void RemoveDeadHands(); void RemoveDeadHands();