Download LyraStarterGame/Source/LyraGame/UI/Weapons/LyraWeaponUserInterface.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 859 Bytes
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Weapons/LyraWeaponUserInterface.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/UI/Weapons/LyraWeaponUserInterface.h
-
curl -L -o LyraWeaponUserInterface.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/UI/Weapons/LyraWeaponUserInterface.h
859 Bytes
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class ULyraWeaponInstance; | |
| class UObject; | |
| struct FGeometry; | |
| UCLASS() | |
| class ULyraWeaponUserInterface : public UCommonUserWidget | |
| { | |
| GENERATED_BODY() | |
| public: | |
| ULyraWeaponUserInterface(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); | |
| virtual void NativeConstruct() override; | |
| virtual void NativeDestruct() override; | |
| virtual void NativeTick(const FGeometry& MyGeometry, float InDeltaTime) override; | |
| UFUNCTION(BlueprintImplementableEvent) | |
| void OnWeaponChanged(ULyraWeaponInstance* OldWeapon, ULyraWeaponInstance* NewWeapon); | |
| private: | |
| void RebuildWidgetFromWeapon(); | |
| private: | |
| UPROPERTY(Transient) | |
| TObjectPtr<ULyraWeaponInstance> CurrentInstance; | |
| }; | |