Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UGameplayStatics
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintPure, Category="Game",
Meta=(DisplayName="Get Local Player Controller From Platform User", WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static APlayerController * GetPlayerControllerFromPlatformUser
(
const UObject * WorldContextObject,
FPlatformUserId UserId
)
Remarks
Returns the player controller with the specified physical controller ID. This only works for local players.
Parameters
| Name | Description |
|---|---|
| ControllerID | Physical controller ID, the same value returned from Get Player Controller ID |