UKismetSystemLibrary::GetCommandLine
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintCallable
Description
Returns the full command line the process was launched with.
Caveats & Gotchas
- • Returns the raw, unparsed string — use ParseCommandLine, ParseParam, or ParseParamValue to extract individual tokens/switches.
- • In shipping builds some command-line arguments may be stripped or altered before the engine sees them, depending on platform.
Signature
static FString GetCommandLine() Return Type
FString Example
Log the launch command line for debugging C++
UE_LOG(LogTemp, Log, TEXT("Launched with: %s"), *UKismetSystemLibrary::GetCommandLine()); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?