unitysamples / LyraStarterGame /Source /LyraGame /Interaction /Tasks /AbilityTask_WaitForInteractableTargets_SingleLineTrace.h
Download LyraStarterGame/Source/LyraGame/Interaction/Tasks/AbilityTask_WaitForInteractableTargets_SingleLineTrace.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Interaction/Tasks/AbilityTask_WaitForInteractableTargets_SingleLineTrace.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Interaction/Tasks/AbilityTask_WaitForInteractableTargets_SingleLineTrace.h
-
curl -L -o AbilityTask_WaitForInteractableTargets_SingleLineTrace.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Interaction/Tasks/AbilityTask_WaitForInteractableTargets_SingleLineTrace.h
1.51 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| struct FCollisionProfileName; | |
| class UGameplayAbility; | |
| class UObject; | |
| struct FFrame; | |
| UCLASS() | |
| class UAbilityTask_WaitForInteractableTargets_SingleLineTrace : public UAbilityTask_WaitForInteractableTargets | |
| { | |
| GENERATED_UCLASS_BODY() | |
| virtual void Activate() override; | |
| /** Wait until we trace new set of interactables. This task automatically loops. */ | |
| UFUNCTION(BlueprintCallable, Category="Ability|Tasks", meta = (HidePin = "OwningAbility", DefaultToSelf = "OwningAbility", BlueprintInternalUseOnly = "TRUE")) | |
| static UAbilityTask_WaitForInteractableTargets_SingleLineTrace* WaitForInteractableTargets_SingleLineTrace(UGameplayAbility* OwningAbility, FInteractionQuery InteractionQuery, FCollisionProfileName TraceProfile, FGameplayAbilityTargetingLocationInfo StartLocation, float InteractionScanRange = 100, float InteractionScanRate = 0.100, bool bShowDebug = false); | |
| private: | |
| virtual void OnDestroy(bool AbilityEnded) override; | |
| void PerformTrace(); | |
| UPROPERTY() | |
| FInteractionQuery InteractionQuery; | |
| UPROPERTY() | |
| FGameplayAbilityTargetingLocationInfo StartLocation; | |
| float InteractionScanRange = 100; | |
| float InteractionScanRate = 0.100; | |
| bool bShowDebug = false; | |
| FTimerHandle TimerHandle; | |
| }; | |