4#include "CoreMinimal.h"
7#include "GameFramework/PlayerController.h"
8#include "Engine/LocalPlayer.h"
9#include "VRPlayerController.generated.h"
22 UFUNCTION(BlueprintImplementableEvent, meta = (
DisplayName = "OnCameraManagerCreated"), Category =
Actor)
23 void OnCameraManagerCreated(APlayerCameraManager* CameraManager);
25 virtual
void SpawnPlayerCameraManager()
override
27 Super::SpawnPlayerCameraManager();
29 if (PlayerCameraManager != NULL && IsLocalController())
31 OnCameraManagerCreated(PlayerCameraManager);
44 AVRPlayerController(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
53 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRPlayerController")
54 bool bDisableServerUpdateCamera;
57 virtual
void SpawnPlayerCameraManager() override;
59 FRotator LastRotationInput;
66 virtual
void PlayerTick(
float DeltaTime) override;
73UCLASS(BlueprintType, Blueprintable, meta = (ShortTooltip = "Utility class, when set as the default local player it will spawn the target PlayerController class instead as the pending one"))
76 GENERATED_UCLASS_BODY()
78 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category =
"LocalPlayer")
79 TSubclassOf<class APlayerController> OverridePendingLevelPlayerControllerClass;
81 virtual bool SpawnPlayActor(
const FString& URL, FString& OutError, UWorld* InWorld)
83 if (OverridePendingLevelPlayerControllerClass)
85 PendingLevelPlayerControllerClass = OverridePendingLevelPlayerControllerClass;
88 return Super::SpawnPlayActor(URL, OutError, InWorld);
virtual void SpawnPlayerCameraManager() override
void OnCameraManagerCreated(APlayerCameraManager *CameraManager)
UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "OnCameraManagerCreated"),...
bool bDisableServerUpdateCamera
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRPlayerController")
FRotator LastRotationInput
UCLASS(BlueprintType, Blueprintable, meta = (ShortTooltip = "Utility class, when set as the default l...
TSubclassOf< class APlayerController > OverridePendingLevelPlayerControllerClass
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "LocalPlayer")
virtual bool SpawnPlayActor(const FString &URL, FString &OutError, UWorld *InWorld)