UPlayer::SwitchController

Dynamically assign Controller to Player and set viewport.

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

virtual void SwitchController
(
    class APlayerController * PC
)

Remarks

Dynamically assign Controller to Player and set viewport.

Parameters

Parameter

Description

PC

new player controller to assign to player

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