RealtimeStyleTransferRuntime/Source/LyraGame/Workshop/PerWorldServiceLocator.h

21 lines
406 B
C++

#pragma once
#include "CoreMinimal.h"
#include "ServiceLocator.h"
#include "Subsystems/WorldSubsystem.h"
#include "PerWorldServiceLocator.generated.h"
UCLASS()
class LYRAGAME_API UPerWorldServiceLocator : public UWorldSubsystem
{
GENERATED_BODY()
public:
static FServiceLocator* Get(UObject* WorldContextObject);
FServiceLocator& GetServiceLocator();
protected:
FServiceLocator ServiceLocator;
};