天天看點

Unreal Engine 4 API Analysis - APlayerControllerSyntaxRemarks Variables

Syntax

class APlayerController : public AController 
           

Remarks 

    PlayerControllers are used by human players to control Pawns.

    ControlRotation (accessed via GetControlRotation() ), determines the aiming orientation of the controlled Pawn.

    In networked games, PlayerControllers exist on the server for every player-controlled pawn, and also on the controlling client's

machine. They do NOT exist on a client's machine for pawns controlled by remote players elsewhere on the network.

    PlayerControllers 被人類玩家用來控制 Pawns。

    ControlRotation(通過 GetControlRotation() 通路),決定了被控制的 Pawn 的瞄準方向。

    在聯網遊戲中,Server上為每一個玩家控制的 Pawn 預留了一個 PlayerController ,同時在相應的用戶端的機器上也有預留。被

網絡其他地方的遠端玩家控制的 Pawn 是沒有在用戶端保留 PlayerController。

Variables

APawn * AcknowledgedPawn

TArray < FActiveForceFeedbackEffect >

ActiveForceFeedbackEffects

TSharedPtr < struct FActiveHapticFeedbackEffect >

ActiveHapticEffect_Gun

TSharedPtr < struct FActiveHapticFeedbackEffect > ActiveHapticEffect_Left

TSharedPtr < struct FActiveHapticFeedbackEffect >

ActiveHapticEffect_Right

TWeakObjectPtr < USceneComponent >

AudioListenerAttenuationComponent

FVector

AudioListenerAttenuationOverride

FRotator

AudioListenerRotationOverride

bool

bAutoManageActiveCameraTarget

uint32 

bCinemaDisableInputLook : 1

uint32 

bCinemaDisableInputMove : 1

uint32

bCinematicMode : 1

uint32

bEnableClickEvents : 1

uint32

bEnableMouseOverEvents : 1

uint32

bEnableTouchEvents : 1

uint32

bEnableTouchOverEvents : 1

uint32

bForceFeedbackEnabled : 1

uint32

bHidePawnInCinematicMode : 1

uint32

bIsUsingStreamingVolumes : 1

FRotator

BlendedTargetViewRotation

uint32

 bOverrideAudioAttenuationListener : 1

uint32

 : 1

uint32

 : 1

uint32

 : 1

uint32

 : 1

uint32

 : 1