UPlayer::SwitchController

Dynamically assign Controller to Player and set viewport.

Choose your operating system:

Windows

macOS

Linux

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