Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UKismetSystemLibrary
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h |
Include | #include "Kismet/KismetSystemLibrary.h" |
Source | /Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp |
static void ParseCommandLine
&40;
const FString & InCmdLine,
TArray< FString > & OutTokens,
TArray< FString > & OutSwitches,
TMap< FString, FString > & OutParams
&41;
Remarks
Parses the given string into loose tokens, switches (arguments that begin with - or /) and parameters (-mySwitch=myVar)
Parameters
Name | Description |
---|---|
InCmdLine | The the string to parse (ie '-foo -bar=/game/baz testtoken' ) |
OutTokens[out] | Filled with all loose tokens found in the string (ie: testToken in above example) |
OutSwitches[out] | Filled with all switches found in the string (ie -foo) |
OutParams[out] | Filled with all switches found in the string with the format key = value (ie: -bar, /game/baz) |