UKismetSystemLibrary::ParseParam
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if InString contains the given -param switch. Do not include the leading '-' in InParam.
Caveats & Gotchas
- • This only checks presence — it ignores any '=value' attached to the switch. Use ParseParamValue if you need the value.
- • Matching is a substring-style check, so a switch name that is a prefix of another (e.g. 'log' vs 'loglevel') can produce false positives depending on the exact string content.
Signature
static bool ParseParam(const FString& InString, const FString& InParam) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InString | FString | The string to search (typically a command line). | — |
| InParam | FString | The switch name to look for, without the leading '-'. | — |
Return Type
bool Example
Check for a debug flag on the command line C++
if (UKismetSystemLibrary::ParseParam(UKismetSystemLibrary::GetCommandLine(), TEXT("debugai")))
{
// -debugai was passed
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?