UKismetStringLibrary::Conv_PlatformUserIdToString
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintAutocast
Description
Converts a platform user ID to its string representation, showing the underlying integer handle. Useful for logging which local user or gamepad slot triggered an event.
Caveats & Gotchas
- • The output is just the raw internal integer (via GetInternalId()), not a stable cross-platform account identifier — it has no meaning outside debug logging.
- • FPlatformUserId values can be reassigned as controllers connect and disconnect, so the string is only valid for the current session.
Signature
static FString Conv_PlatformUserIdToString(FPlatformUserId InPlatformUserId) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InPlatformUserId | FPlatformUserId | The platform user ID to convert to a string. | — |
Return Type
FString Example
Log the platform user of an input event C++
void ALogPlayerActor::OnInputReceived(FPlatformUserId UserId)
{
FString UserIdText = UKismetStringLibrary::Conv_PlatformUserIdToString(UserId);
UE_LOG(LogTemp, Log, TEXT("Input from platform user %s"), *UserIdText);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?