A Demo Project for the UnrealEngineSDK
|
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = (VRExpansionPlugin)) More...
#include <VRButtonComponent.h>
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< AActor > | LocalLastInteractingActor |
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 () | |
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent), ClassGroup = (VRExpansionPlugin))
Definition at line 56 of file VRButtonComponent.h.
UVRButtonComponent::UVRButtonComponent | ( | const FObjectInitializer & | ObjectInitializer | ) |
Definition at line 7 of file VRButtonComponent.cpp.
UVRButtonComponent::~UVRButtonComponent | ( | ) |
Definition at line 37 of file VRButtonComponent.cpp.
|
overridevirtual |
|
private |
|
inlineprotected |
|
virtual |
Definition at line 310 of file VRButtonComponent.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VRButtonComponent")
Definition at line 377 of file VRButtonComponent.cpp.
|
BlueprintNativeEventBlueprintCallable |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VRButtonComponent")
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.
void UVRButtonComponent::OnOverlapEnd | ( | UPrimitiveComponent * | OverlappedComp, |
AActor * | OtherActor, | ||
UPrimitiveComponent * | OtherComp, | ||
int32 | OtherBodyIndex ) |
UFUNCTION()
Definition at line 302 of file VRButtonComponent.cpp.
|
overridevirtual |
|
inlinevirtual |
UFUNCTION()
Definition at line 285 of file VRButtonComponent.h.
|
overridevirtual |
Definition at line 51 of file VRButtonComponent.cpp.
|
BlueprintImplementableEvent |
UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button Started Interaction"))
|
BlueprintImplementableEvent |
UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button Ended Interaction"))
|
BlueprintImplementableEvent |
UFUNCTION(BlueprintImplementableEvent, meta = (DisplayName = "Button State Changed"))
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")
Definition at line 371 of file VRButtonComponent.cpp.
|
inlineprotected |
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")
Definition at line 354 of file VRButtonComponent.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRButtonComponent")
Definition at line 324 of file VRButtonComponent.cpp.
void UVRButtonComponent::SetLastInteractingActor | ( | ) |
|
overridevirtual |
|
BlueprintReadWriteEditAnywhereReplicated |
UPROPERTY(EditAnywhere,BlueprintReadWrite, Replicated, Category = "VRButtonComponent")
Definition at line 182 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 173 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhereReplicated |
UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
Definition at line 268 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 247 of file VRButtonComponent.h.
|
protected |
Definition at line 294 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 223 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 231 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 215 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 207 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 199 of file VRButtonComponent.h.
|
protected |
Definition at line 295 of file VRButtonComponent.h.
|
protected |
Definition at line 293 of file VRButtonComponent.h.
|
BlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, ReplicatedUsing = OnRep_InitialRelativeTransform, Category = "VRButtonComponent")
Definition at line 280 of file VRButtonComponent.h.
|
protected |
Definition at line 296 of file VRButtonComponent.h.
|
BlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")
Definition at line 153 of file VRButtonComponent.h.
|
BlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")
Definition at line 159 of file VRButtonComponent.h.
|
BlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, Category = "VRButtonComponent")
Definition at line 165 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhere |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRButtonComponent")
Definition at line 239 of file VRButtonComponent.h.
|
BlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")
Definition at line 125 of file VRButtonComponent.h.
|
BlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")
Definition at line 132 of file VRButtonComponent.h.
|
BlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "VRButtonComponent")
Definition at line 111 of file VRButtonComponent.h.
|
BlueprintReadWriteEditAnywhereReplicated |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Replicated, Category = "VRButtonComponent|Replication")
Definition at line 191 of file VRButtonComponent.h.