RealtimeStyleTransferRuntime/Source/LyraGame/Hotfix/LyraRuntimeOptions.h

38 lines
1.2 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Engine/RuntimeOptionsBase.h"
2022-09-13 07:18:28 +00:00
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraRuntimeOptions.generated.h"
2022-09-13 07:18:28 +00:00
class UObject;
struct FFrame;
2022-05-23 18:41:30 +00:00
/**
* ULyraRuntimeOptions: Supports checking at runtime whether features are enabled/disabled, changing
* configuration parameters, console cheats, startup commands.
*
* Add a new Property that *defaults* (either naturally or in the constructor) to the desired
* normal state. (e.g. bDisableSomething). If you ever need to suddenly disable that thing in the
* live game, you'll be able to.
*
* For testing you can run with -ro.bDisableSomething=true to override the defaults. This is only
* available in non-shipping builds.
*
* Variables are registered with the console under the 'ro' namespace. E.g. ro.bDisableSomething
*/
UCLASS(config = RuntimeOptions, BlueprintType)
class LYRAGAME_API ULyraRuntimeOptions : public URuntimeOptionsBase
{
GENERATED_BODY()
public:
static const ULyraRuntimeOptions& Get();
ULyraRuntimeOptions();
UFUNCTION(BlueprintPure, Category = Options)
static ULyraRuntimeOptions* GetRuntimeOptions();
};