A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
UReplicatedVRCameraComponent Class ReferenceBlueprintable

UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary) More...

#include <ReplicatedVRCameraComponent.h>

Inheritance diagram for UReplicatedVRCameraComponent:
[legend]

Public Types

typedef void(AVRBaseCharacter::* VRBaseCharTransformRPC_Pointer) (FBPVRComponentPosRep NewTransform)
 

Public Member Functions

 UReplicatedVRCameraComponent (const FObjectInitializer &ObjectInitializer)
 
void ApplyTrackingParameters (FVector &OriginalPosition)
 
virtual void GetCameraView (float DeltaTime, FMinimalViewInfo &DesiredView) override
 
bool HasTrackingParameters ()
 
bool IsLocallyControlled () const
 
virtual void OnAttachmentChanged () override
 
virtual void OnRep_ReplicatedCameraTransform ()
 UFUNCTION()
 
void RunNetworkedSmoothing (float DeltaTime)
 
void Server_SendCameraTransform (FBPVRComponentPosRep NewTransform)
 UFUNCTION(Unreliable, Server, WithValidation)
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 
void UpdateTracking (float DeltaTime)
 

Public Attributes

TWeakObjectPtr< AVRBaseCharacterAttachChar
 UPROPERTY()
 
uint32 bAutoSetLockToHmd: 1
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
 
bool bHadValidFirstVelocity
 
bool bHasAuthority
 
bool bIsServer
 
bool bLerpingPosition
 
bool bLimitBounds
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
 
bool bLimitMaxHeight
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
 
bool bLimitMinHeight
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
 
bool bOffsetByHMD
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")
 
bool bReppedOnce
 
bool bSampleVelocityInWorldSpace
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|ComponentVelocity")
 
bool bScaleTracking
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")
 
bool bSetPositionDuringTick
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")
 
bool bSmoothReplicatedMotion
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")
 
bool bUpdateInCharacterMovement
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")
 
bool bUseExponentialSmoothing = true
 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bSmoothReplicatedMotion"))
 
float InterpolationSpeed = 50.0f
 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
 
FTransform LastRelativePosition
 
FVector LastUpdatesRelativePosition
 
FRotator LastUpdatesRelativeRotation
 
float MaxHeightAllowed
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))
 
float MaximumTrackedBounds
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))
 
float MinimumHeightAllowed
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.0", UIMin = "0.0", EditCondition = "bLimitMinHeight"))
 
FBPVRComponentPosRep MotionSampleUpdateBuffer [2]
 
float NetUpdateCount
 
float NetUpdateRate
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")
 
float NetworkMaxSmoothUpdateDistance = 50.f
 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
 
float NetworkNoSmoothUpdateDistance = 100.f
 UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))
 
VRBaseCharTransformRPC_Pointer OverrideSendTransform
 
FBPVRComponentPosRep ReplicatedCameraTransform
 UPROPERTY(EditDefaultsOnly, ReplicatedUsing = OnRep_ReplicatedCameraTransform, Category = "ReplicatedCamera|Networking")
 
FVector TrackingScaler
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bScaleTracking"))
 

Private Member Functions

 GENERATED_BODY ()
 

Detailed Description

UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = VRExpansionLibrary)

An overridden camera component that replicates its location in multiplayer

Definition at line 19 of file ReplicatedVRCameraComponent.h.

Member Typedef Documentation

◆ VRBaseCharTransformRPC_Pointer

typedef void(AVRBaseCharacter::* UReplicatedVRCameraComponent::VRBaseCharTransformRPC_Pointer) (FBPVRComponentPosRep NewTransform)

Definition at line 238 of file ReplicatedVRCameraComponent.h.

Constructor & Destructor Documentation

◆ UReplicatedVRCameraComponent()

UReplicatedVRCameraComponent::UReplicatedVRCameraComponent ( const FObjectInitializer & ObjectInitializer)

Definition at line 44 of file ReplicatedVRCameraComponent.cpp.

Member Function Documentation

◆ ApplyTrackingParameters()

void UReplicatedVRCameraComponent::ApplyTrackingParameters ( FVector & OriginalPosition)

Definition at line 175 of file ReplicatedVRCameraComponent.cpp.

Here is the caller graph for this function:

◆ GENERATED_BODY()

UReplicatedVRCameraComponent::GENERATED_BODY ( )
private

◆ GetCameraView()

void UReplicatedVRCameraComponent::GetCameraView ( float DeltaTime,
FMinimalViewInfo & DesiredView )
overridevirtual

Definition at line 366 of file ReplicatedVRCameraComponent.cpp.

Here is the call graph for this function:

◆ HasTrackingParameters()

bool UReplicatedVRCameraComponent::HasTrackingParameters ( )

Definition at line 170 of file ReplicatedVRCameraComponent.cpp.

Here is the caller graph for this function:

◆ IsLocallyControlled()

bool UReplicatedVRCameraComponent::IsLocallyControlled ( ) const
inline

Definition at line 242 of file ReplicatedVRCameraComponent.h.

Here is the caller graph for this function:

◆ OnAttachmentChanged()

void UReplicatedVRCameraComponent::OnAttachmentChanged ( )
overridevirtual

Definition at line 156 of file ReplicatedVRCameraComponent.cpp.

◆ OnRep_ReplicatedCameraTransform()

void UReplicatedVRCameraComponent::OnRep_ReplicatedCameraTransform ( )
virtual

UFUNCTION()

Definition at line 468 of file ReplicatedVRCameraComponent.cpp.

Here is the call graph for this function:

◆ RunNetworkedSmoothing()

void UReplicatedVRCameraComponent::RunNetworkedSmoothing ( float DeltaTime)

Definition at line 245 of file ReplicatedVRCameraComponent.cpp.

Here is the caller graph for this function:

◆ Server_SendCameraTransform()

void UReplicatedVRCameraComponent::Server_SendCameraTransform ( FBPVRComponentPosRep NewTransform)
ServerWithValidationUnreliable

UFUNCTION(Unreliable, Server, WithValidation)

Here is the caller graph for this function:

◆ TickComponent()

void UReplicatedVRCameraComponent::TickComponent ( float DeltaTime,
enum ELevelTick TickType,
FActorComponentTickFunction * ThisTickFunction )
overridevirtual

Definition at line 307 of file ReplicatedVRCameraComponent.cpp.

Here is the call graph for this function:

◆ UpdateTracking()

void UReplicatedVRCameraComponent::UpdateTracking ( float DeltaTime)

Definition at line 205 of file ReplicatedVRCameraComponent.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ AttachChar

TWeakObjectPtr<AVRBaseCharacter> UReplicatedVRCameraComponent::AttachChar

UPROPERTY()

Definition at line 38 of file ReplicatedVRCameraComponent.h.

◆ bAutoSetLockToHmd

uint32 UReplicatedVRCameraComponent::bAutoSetLockToHmd
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")

Sets lock to hmd automatically based on if the camera is currently locally controlled or not

Definition at line 149 of file ReplicatedVRCameraComponent.h.

◆ bHadValidFirstVelocity

bool UReplicatedVRCameraComponent::bHadValidFirstVelocity

Definition at line 53 of file ReplicatedVRCameraComponent.h.

◆ bHasAuthority

bool UReplicatedVRCameraComponent::bHasAuthority

Whether or not this component has authority within the frame

Definition at line 47 of file ReplicatedVRCameraComponent.h.

◆ bIsServer

bool UReplicatedVRCameraComponent::bIsServer

Whether or not this component is currently on the network server

Definition at line 50 of file ReplicatedVRCameraComponent.h.

◆ bLerpingPosition

bool UReplicatedVRCameraComponent::bLerpingPosition

Definition at line 168 of file ReplicatedVRCameraComponent.h.

◆ bLimitBounds

bool UReplicatedVRCameraComponent::bLimitBounds
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")

Definition at line 133 of file ReplicatedVRCameraComponent.h.

◆ bLimitMaxHeight

bool UReplicatedVRCameraComponent::bLimitMaxHeight
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")

Definition at line 117 of file ReplicatedVRCameraComponent.h.

◆ bLimitMinHeight

bool UReplicatedVRCameraComponent::bLimitMinHeight
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")

Definition at line 101 of file ReplicatedVRCameraComponent.h.

◆ bOffsetByHMD

bool UReplicatedVRCameraComponent::bOffsetByHMD
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")

Definition at line 77 of file ReplicatedVRCameraComponent.h.

◆ bReppedOnce

bool UReplicatedVRCameraComponent::bReppedOnce

Definition at line 169 of file ReplicatedVRCameraComponent.h.

◆ bSampleVelocityInWorldSpace

bool UReplicatedVRCameraComponent::bSampleVelocityInWorldSpace
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|ComponentVelocity")

Definition at line 61 of file ReplicatedVRCameraComponent.h.

◆ bScaleTracking

bool UReplicatedVRCameraComponent::bScaleTracking
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking")

Definition at line 85 of file ReplicatedVRCameraComponent.h.

◆ bSetPositionDuringTick

bool UReplicatedVRCameraComponent::bSetPositionDuringTick
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera")

Definition at line 69 of file ReplicatedVRCameraComponent.h.

◆ bSmoothReplicatedMotion

bool UReplicatedVRCameraComponent::bSmoothReplicatedMotion
EditAnywhereBlueprintReadWriteReplicated

UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")

Definition at line 181 of file ReplicatedVRCameraComponent.h.

◆ bUpdateInCharacterMovement

bool UReplicatedVRCameraComponent::bUpdateInCharacterMovement
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRExpansionLibrary")

Definition at line 33 of file ReplicatedVRCameraComponent.h.

◆ bUseExponentialSmoothing

bool UReplicatedVRCameraComponent::bUseExponentialSmoothing = true
EditAnywhere

UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bSmoothReplicatedMotion"))

Definition at line 188 of file ReplicatedVRCameraComponent.h.

◆ InterpolationSpeed

float UReplicatedVRCameraComponent::InterpolationSpeed = 50.0f
EditAnywhere

UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))

Definition at line 195 of file ReplicatedVRCameraComponent.h.

◆ LastRelativePosition

FTransform UReplicatedVRCameraComponent::LastRelativePosition

Definition at line 52 of file ReplicatedVRCameraComponent.h.

◆ LastUpdatesRelativePosition

FVector UReplicatedVRCameraComponent::LastUpdatesRelativePosition

Definition at line 165 of file ReplicatedVRCameraComponent.h.

◆ LastUpdatesRelativeRotation

FRotator UReplicatedVRCameraComponent::LastUpdatesRelativeRotation

Definition at line 166 of file ReplicatedVRCameraComponent.h.

◆ MaxHeightAllowed

float UReplicatedVRCameraComponent::MaxHeightAllowed
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))

Definition at line 125 of file ReplicatedVRCameraComponent.h.

◆ MaximumTrackedBounds

float UReplicatedVRCameraComponent::MaximumTrackedBounds
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bLimitMaxHeight"))

Definition at line 141 of file ReplicatedVRCameraComponent.h.

◆ MinimumHeightAllowed

float UReplicatedVRCameraComponent::MinimumHeightAllowed
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.0", UIMin = "0.0", EditCondition = "bLimitMinHeight"))

Definition at line 109 of file ReplicatedVRCameraComponent.h.

◆ MotionSampleUpdateBuffer

FBPVRComponentPosRep UReplicatedVRCameraComponent::MotionSampleUpdateBuffer[2]

Definition at line 163 of file ReplicatedVRCameraComponent.h.

◆ NetUpdateCount

float UReplicatedVRCameraComponent::NetUpdateCount

Definition at line 226 of file ReplicatedVRCameraComponent.h.

◆ NetUpdateRate

float UReplicatedVRCameraComponent::NetUpdateRate
EditAnywhereBlueprintReadWriteReplicated

UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "ReplicatedCamera|Networking")

Definition at line 223 of file ReplicatedVRCameraComponent.h.

◆ NetworkMaxSmoothUpdateDistance

float UReplicatedVRCameraComponent::NetworkMaxSmoothUpdateDistance = 50.f
EditAnywhere

UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))

Definition at line 202 of file ReplicatedVRCameraComponent.h.

◆ NetworkNoSmoothUpdateDistance

float UReplicatedVRCameraComponent::NetworkNoSmoothUpdateDistance = 100.f
EditAnywhere

UPROPERTY(EditAnywhere, Category = "GripMotionController|Networking|Smoothing", meta = (editcondition = "bUseExponentialSmoothing"))

Definition at line 209 of file ReplicatedVRCameraComponent.h.

◆ OverrideSendTransform

VRBaseCharTransformRPC_Pointer UReplicatedVRCameraComponent::OverrideSendTransform

Definition at line 239 of file ReplicatedVRCameraComponent.h.

◆ ReplicatedCameraTransform

FBPVRComponentPosRep UReplicatedVRCameraComponent::ReplicatedCameraTransform
EditDefaultsOnly

UPROPERTY(EditDefaultsOnly, ReplicatedUsing = OnRep_ReplicatedCameraTransform, Category = "ReplicatedCamera|Networking")

Definition at line 161 of file ReplicatedVRCameraComponent.h.

◆ TrackingScaler

FVector UReplicatedVRCameraComponent::TrackingScaler
EditAnywhereBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "ReplicatedCamera|Advanced|Tracking", meta = (ClampMin = "0.1", UIMin = "0.1", EditCondition = "bScaleTracking"))

Definition at line 93 of file ReplicatedVRCameraComponent.h.


The documentation for this class was generated from the following files: