Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UEngine
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULocalPlayer * GetLocalPlayerFromControllerId
(
const UGameViewportClient* InViewport, |
Retrieves the LocalPlayer for the player which has the ControllerId specified | Engine/Engine.h | |
ULocalPlayer * GetLocalPlayerFromControllerId
(
UWorld* InWorld, |
Engine/Engine.h |
GetLocalPlayerFromControllerId(const UGameViewportClient *, const int32)
Description
Retrieves the LocalPlayer for the player which has the ControllerId specified
| Name | GetLocalPlayerFromControllerId |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Engine.h |
| Include Path | #include "Engine/Engine.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp |
ULocalPlayer * GetLocalPlayerFromControllerId
(
const UGameViewportClient * InViewport,
const int32 ControllerId
) const
The player that has the ControllerId specified, or nullptr if no players have that ControllerId
Parameters
| Name | Remarks |
|---|---|
| ControllerId | the game pad index of the player to search for |
GetLocalPlayerFromControllerId(UWorld *, const int32)
| Name | GetLocalPlayerFromControllerId |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Engine.h |
| Include Path | #include "Engine/Engine.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp |
ULocalPlayer * GetLocalPlayerFromControllerId
(
UWorld * InWorld,
const int32 ControllerId
) const