Download LyraStarterGame/Plugins/CommonGame/Source/Public/GameUIManagerSubsystem.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.64 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/GameUIManagerSubsystem.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Plugins/CommonGame/Source/Public/GameUIManagerSubsystem.h
-
curl -L -o GameUIManagerSubsystem.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Plugins/CommonGame/Source/Public/GameUIManagerSubsystem.h
1.64 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class FSubsystemCollectionBase; | |
| class UCommonLocalPlayer; | |
| class UGameUIPolicy; | |
| class UObject; | |
| /** | |
| * This manager is intended to be replaced by whatever your game needs to | |
| * actually create, so this class is abstract to prevent it from being created. | |
| * | |
| * If you just need the basic functionality you will start by sublcassing this | |
| * subsystem in your own game. | |
| */ | |
| UCLASS(MinimalAPI, Abstract, config = Game) | |
| class UGameUIManagerSubsystem : public UGameInstanceSubsystem | |
| { | |
| GENERATED_BODY() | |
| public: | |
| UGameUIManagerSubsystem() { } | |
| UE_API virtual void Initialize(FSubsystemCollectionBase& Collection) override; | |
| UE_API virtual void Deinitialize() override; | |
| UE_API virtual bool ShouldCreateSubsystem(UObject* Outer) const override; | |
| const UGameUIPolicy* GetCurrentUIPolicy() const { return CurrentPolicy; } | |
| UGameUIPolicy* GetCurrentUIPolicy() { return CurrentPolicy; } | |
| UE_API virtual void NotifyPlayerAdded(UCommonLocalPlayer* LocalPlayer); | |
| UE_API virtual void NotifyPlayerRemoved(UCommonLocalPlayer* LocalPlayer); | |
| UE_API virtual void NotifyPlayerDestroyed(UCommonLocalPlayer* LocalPlayer); | |
| protected: | |
| UE_API void SwitchToPolicy(UGameUIPolicy* InPolicy); | |
| private: | |
| UPROPERTY(Transient) | |
| TObjectPtr<UGameUIPolicy> CurrentPolicy = nullptr; | |
| UPROPERTY(config, EditAnywhere) | |
| TSoftClassPtr<UGameUIPolicy> DefaultUIPolicyClass; | |
| }; | |