UPlayer::GetPlayerController

Gets the player controller in the given world for this player.

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Player.h

Include

#include "Engine/Player.h"

Source

/Engine/Source/Runtime/Engine/Private/Player.cpp

Syntax

APlayerController * GetPlayerController
(
    const UWorld *const InWorld
) const

Remarks

Gets the player controller in the given world for this player.

Returns

The controller associated with this player in InWorld, if one exists.

Parameters

Parameter

Description

InWorld

The world in which to search for player controllers.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel