Download LyraStarterGame/Source/LyraGame/UI/Weapons/HitMarkerConfirmationWidget.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.68 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Weapons/HitMarkerConfirmationWidget.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/UI/Weapons/HitMarkerConfirmationWidget.h
-
curl -L -o HitMarkerConfirmationWidget.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Weapons/HitMarkerConfirmationWidget.h
1.68 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class SHitMarkerConfirmationWidget; | |
| class SWidget; | |
| class UObject; | |
| struct FGameplayTag; | |
| UCLASS() | |
| class UHitMarkerConfirmationWidget : public UWidget | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UHitMarkerConfirmationWidget(const FObjectInitializer& ObjectInitializer); | |
| //~UWidget interface | |
| protected: | |
| virtual TSharedRef<SWidget> RebuildWidget() override; | |
| //~End of UWidget interface | |
| //~UVisual interface | |
| public: | |
| virtual void ReleaseSlateResources(bool bReleaseChildren) override; | |
| //~End of UVisual interface | |
| public: | |
| /** The duration (in seconds) to display hit notifies (they fade to transparent over this time) */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance, meta=(ClampMin=0.0, ForceUnits=s)) | |
| float HitNotifyDuration = 0.4f; | |
| /** The marker image to draw for individual hit markers. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance) | |
| FSlateBrush PerHitMarkerImage; | |
| /** Map from zone tag (e.g., weak spot) to override marker images for individual location hits. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category=Appearance) | |
| TMap<FGameplayTag, FSlateBrush> PerHitMarkerZoneOverrideImages; | |
| /** The marker image to draw if there are any hits at all. */ | |
| UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Appearance) | |
| FSlateBrush AnyHitsMarkerImage; | |
| private: | |
| /** Internal slate widget representing the actual marker visuals */ | |
| TSharedPtr<SHitMarkerConfirmationWidget> MyMarkerWidget; | |
| }; | |