Create/Register a console variable
If you want to create a console variable use static TAutoConsoleVariable in a CPP file of your choice. Supported and recommended types are FString, float, and int32.
If you want to create a console variable inside a method use IConsoleManager::Get().RegisterConsoleVariable. Supported types are FString, float, and int32.
Getting State of a console variable
To get the state of a variable, just use your registered variable name.
For more informations regarding console variables, please read the official docs of Epic ConsoleManager