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

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

#include <VRButtonComponent.h>

Inheritance diagram for UVRButtonComponent:
[legend]

Public Member Functions

 UVRButtonComponent (const FObjectInitializer &ObjectInitializer)
 
 ~UVRButtonComponent ()
 
virtual void BeginPlay () override
 
virtual FVector GetTargetRelativeLocation ()
 
bool IsButtonInUse ()
 UFUNCTION(BlueprintPure, Category = "VRButtonComponent")
 
bool IsValidOverlap (UPrimitiveComponent *OverlapComponent)
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VRButtonComponent")
 
void OnOverlapBegin (UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
 UFUNCTION()
 
void OnOverlapEnd (UPrimitiveComponent *OverlappedComp, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex)
 UFUNCTION()
 
virtual void OnRegister () override
 
virtual void OnRep_InitialRelativeTransform ()
 UFUNCTION()
 
virtual void PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker) override
 
void ReceiveButtonBeginInteraction (AActor *InteractingActor, UPrimitiveComponent *InteractingComponent)
 UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button Started Interaction"))
 
void ReceiveButtonEndInteraction (AActor *LastInteractingActor, UPrimitiveComponent *LastInteractingComponent)
 UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button Ended Interaction"))
 
void ReceiveButtonStateChanged (bool bCurButtonState, AActor *LastInteractingActor, UPrimitiveComponent *InteractingComponent)
 UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button State Changed"))
 
void ResetInitialButtonLocation ()
 UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")
 
void SetButtonState (bool bNewButtonState, bool bCallButtonChangedEvent=true, bool bSnapIntoPosition=false)
 UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")
 
void SetButtonToRestingPosition (bool bLerpToPosition=false)
 UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")
 
void SetLastInteractingActor ()
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 

Public Attributes

bool bButtonState
 UPROPERTY(EditAnywhere,BlueprintReadWrite, Replicated, Category = "VRButtonComponent")
 
bool bIsEnabled
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
bool bReplicateMovement
 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
 
bool bSkipOverlapFiltering
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
EVRInteractibleAxis ButtonAxis
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
float ButtonEngageDepth
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
EVRButtonType ButtonType
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
float DepressDistance
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
float DepressSpeed
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
FTransform_NetQuantize InitialRelativeTransform
 UPROPERTY(BlueprintReadOnly, ReplicatedUsing = OnRep_InitialRelativeTransform, Category = "VRButtonComponent")
 
TWeakObjectPtr< UPrimitiveComponent > LocalInteractingComponent
 UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")
 
TWeakObjectPtr< AActorLocalLastInteractingActor
 UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")
 
TWeakObjectPtr< UPrimitiveComponent > LocalLastInteractingComponent
 UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")
 
float MinTimeBetweenEngaging
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
 
FVRButtonStartedInteractionSignature OnButtonBeginInteraction
 UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")
 
FVRButtonStartedInteractionSignature OnButtonEndInteraction
 UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")
 
FVRButtonStateChangedSignature OnButtonStateChanged
 UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")
 
EVRStateChangeAuthorityType StateChangeAuthorityType
 UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "VRButtonComponent|Replication")
 

Protected Member Functions

float GetAxisValue (FVector CheckLocation)
 
FVector SetAxisValue (float SetValue)
 

Protected Attributes

bool bToggledThisTouch
 
FVector InitialComponentLoc
 
FVector InitialLocation
 
float LastToggleTime
 

Private Member Functions

 GENERATED_BODY ()
 

Detailed Description

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

Definition at line 56 of file VRButtonComponent.h.

Constructor & Destructor Documentation

◆ UVRButtonComponent()

UVRButtonComponent::UVRButtonComponent ( const FObjectInitializer & ObjectInitializer)

Definition at line 7 of file VRButtonComponent.cpp.

◆ ~UVRButtonComponent()

UVRButtonComponent::~UVRButtonComponent ( )

Definition at line 37 of file VRButtonComponent.cpp.

Member Function Documentation

◆ BeginPlay()

void UVRButtonComponent::BeginPlay ( )
overridevirtual

Definition at line 69 of file VRButtonComponent.cpp.

Here is the call graph for this function:

◆ GENERATED_BODY()

UVRButtonComponent::GENERATED_BODY ( )
private

◆ GetAxisValue()

float UVRButtonComponent::GetAxisValue ( FVector CheckLocation)
inlineprotected

Definition at line 298 of file VRButtonComponent.h.

Here is the caller graph for this function:

◆ GetTargetRelativeLocation()

FVector UVRButtonComponent::GetTargetRelativeLocation ( )
virtual

Definition at line 310 of file VRButtonComponent.cpp.

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

◆ IsButtonInUse()

bool UVRButtonComponent::IsButtonInUse ( )
BlueprintPure

UFUNCTION(BlueprintPure, Category = "VRButtonComponent")

Definition at line 377 of file VRButtonComponent.cpp.

◆ IsValidOverlap()

bool UVRButtonComponent::IsValidOverlap ( UPrimitiveComponent * OverlapComponent)
BlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VRButtonComponent")

Here is the caller graph for this function:

◆ OnOverlapBegin()

void UVRButtonComponent::OnOverlapBegin ( UPrimitiveComponent * OverlappedComp,
AActor * OtherActor,
UPrimitiveComponent * OtherComp,
int32 OtherBodyIndex,
bool bFromSweep,
const FHitResult & SweepResult )

UFUNCTION()

Definition at line 278 of file VRButtonComponent.cpp.

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

◆ OnOverlapEnd()

void UVRButtonComponent::OnOverlapEnd ( UPrimitiveComponent * OverlappedComp,
AActor * OtherActor,
UPrimitiveComponent * OtherComp,
int32 OtherBodyIndex )

UFUNCTION()

Definition at line 302 of file VRButtonComponent.cpp.

Here is the caller graph for this function:

◆ OnRegister()

void UVRButtonComponent::OnRegister ( )
overridevirtual

Definition at line 63 of file VRButtonComponent.cpp.

Here is the call graph for this function:

◆ OnRep_InitialRelativeTransform()

virtual void UVRButtonComponent::OnRep_InitialRelativeTransform ( )
inlinevirtual

UFUNCTION()

Definition at line 285 of file VRButtonComponent.h.

◆ PreReplication()

void UVRButtonComponent::PreReplication ( IRepChangedPropertyTracker & ChangedPropertyTracker)
overridevirtual

Definition at line 51 of file VRButtonComponent.cpp.

◆ ReceiveButtonBeginInteraction()

void UVRButtonComponent::ReceiveButtonBeginInteraction ( AActor * InteractingActor,
UPrimitiveComponent * InteractingComponent )
BlueprintImplementableEvent

UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button Started Interaction"))

Here is the caller graph for this function:

◆ ReceiveButtonEndInteraction()

void UVRButtonComponent::ReceiveButtonEndInteraction ( AActor * LastInteractingActor,
UPrimitiveComponent * LastInteractingComponent )
BlueprintImplementableEvent

UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button Ended Interaction"))

Here is the caller graph for this function:

◆ ReceiveButtonStateChanged()

void UVRButtonComponent::ReceiveButtonStateChanged ( bool bCurButtonState,
AActor * LastInteractingActor,
UPrimitiveComponent * InteractingComponent )
BlueprintImplementableEvent

UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button State Changed"))

Here is the caller graph for this function:

◆ ResetInitialButtonLocation()

void UVRButtonComponent::ResetInitialButtonLocation ( )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")

Definition at line 371 of file VRButtonComponent.cpp.

Here is the caller graph for this function:

◆ SetAxisValue()

FVector UVRButtonComponent::SetAxisValue ( float SetValue)
inlineprotected

Definition at line 312 of file VRButtonComponent.h.

Here is the caller graph for this function:

◆ SetButtonState()

void UVRButtonComponent::SetButtonState ( bool bNewButtonState,
bool bCallButtonChangedEvent = true,
bool bSnapIntoPosition = false )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")

Definition at line 354 of file VRButtonComponent.cpp.

Here is the call graph for this function:

◆ SetButtonToRestingPosition()

void UVRButtonComponent::SetButtonToRestingPosition ( bool bLerpToPosition = false)
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")

Definition at line 324 of file VRButtonComponent.cpp.

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

◆ SetLastInteractingActor()

void UVRButtonComponent::SetLastInteractingActor ( )

Definition at line 212 of file VRButtonComponent.cpp.

Here is the caller graph for this function:

◆ TickComponent()

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

Definition at line 80 of file VRButtonComponent.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bButtonState

bool UVRButtonComponent::bButtonState
EditAnywhereReplicatedBlueprintReadWrite

UPROPERTY(EditAnywhere,BlueprintReadWrite, Replicated, Category = "VRButtonComponent")

Definition at line 182 of file VRButtonComponent.h.

◆ bIsEnabled

bool UVRButtonComponent::bIsEnabled
EditAnywhereBlueprintReadWrite

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

Definition at line 173 of file VRButtonComponent.h.

◆ bReplicateMovement

bool UVRButtonComponent::bReplicateMovement
EditAnywhereReplicatedBlueprintReadWrite

UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")

Definition at line 268 of file VRButtonComponent.h.

◆ bSkipOverlapFiltering

bool UVRButtonComponent::bSkipOverlapFiltering
EditAnywhereBlueprintReadWrite

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

Definition at line 247 of file VRButtonComponent.h.

◆ bToggledThisTouch

bool UVRButtonComponent::bToggledThisTouch
protected

Definition at line 294 of file VRButtonComponent.h.

◆ ButtonAxis

EVRInteractibleAxis UVRButtonComponent::ButtonAxis
EditAnywhereBlueprintReadWrite

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

Definition at line 223 of file VRButtonComponent.h.

◆ ButtonEngageDepth

float UVRButtonComponent::ButtonEngageDepth
EditAnywhereBlueprintReadWrite

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

Definition at line 231 of file VRButtonComponent.h.

◆ ButtonType

EVRButtonType UVRButtonComponent::ButtonType
EditAnywhereBlueprintReadWrite

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

Definition at line 215 of file VRButtonComponent.h.

◆ DepressDistance

float UVRButtonComponent::DepressDistance
EditAnywhereBlueprintReadWrite

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

Definition at line 207 of file VRButtonComponent.h.

◆ DepressSpeed

float UVRButtonComponent::DepressSpeed
EditAnywhereBlueprintReadWrite

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

Definition at line 199 of file VRButtonComponent.h.

◆ InitialComponentLoc

FVector UVRButtonComponent::InitialComponentLoc
protected

Definition at line 295 of file VRButtonComponent.h.

◆ InitialLocation

FVector UVRButtonComponent::InitialLocation
protected

Definition at line 293 of file VRButtonComponent.h.

◆ InitialRelativeTransform

FTransform_NetQuantize UVRButtonComponent::InitialRelativeTransform
BlueprintReadOnly

UPROPERTY(BlueprintReadOnly, ReplicatedUsing = OnRep_InitialRelativeTransform, Category = "VRButtonComponent")

Definition at line 280 of file VRButtonComponent.h.

◆ LastToggleTime

float UVRButtonComponent::LastToggleTime
protected

Definition at line 296 of file VRButtonComponent.h.

◆ LocalInteractingComponent

TWeakObjectPtr<UPrimitiveComponent> UVRButtonComponent::LocalInteractingComponent
BlueprintReadOnly

UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")

Definition at line 153 of file VRButtonComponent.h.

◆ LocalLastInteractingActor

TWeakObjectPtr<AActor> UVRButtonComponent::LocalLastInteractingActor
BlueprintReadOnly

UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")

Definition at line 159 of file VRButtonComponent.h.

◆ LocalLastInteractingComponent

TWeakObjectPtr<UPrimitiveComponent> UVRButtonComponent::LocalLastInteractingComponent
BlueprintReadOnly

UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")

Definition at line 165 of file VRButtonComponent.h.

◆ MinTimeBetweenEngaging

float UVRButtonComponent::MinTimeBetweenEngaging
EditAnywhereBlueprintReadWrite

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

Definition at line 239 of file VRButtonComponent.h.

◆ OnButtonBeginInteraction

FVRButtonStartedInteractionSignature UVRButtonComponent::OnButtonBeginInteraction
BlueprintAssignable

UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")

Definition at line 125 of file VRButtonComponent.h.

◆ OnButtonEndInteraction

FVRButtonStartedInteractionSignature UVRButtonComponent::OnButtonEndInteraction
BlueprintAssignable

UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")

Definition at line 132 of file VRButtonComponent.h.

◆ OnButtonStateChanged

FVRButtonStateChangedSignature UVRButtonComponent::OnButtonStateChanged
BlueprintAssignable

UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")

Definition at line 111 of file VRButtonComponent.h.

◆ StateChangeAuthorityType

EVRStateChangeAuthorityType UVRButtonComponent::StateChangeAuthorityType
EditAnywhereReplicatedBlueprintReadWrite

UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "VRButtonComponent|Replication")

Definition at line 191 of file VRButtonComponent.h.


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