31 virtual
void BeginPlay() override;
32 virtual
void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
34 UPROPERTY(EditAnywhere, Replicated, BlueprintReadOnly, Instanced, Category = "VRGripInterface")
40 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface")
41 bool bReplicateGripScripts;
43 bool ReplicateSubobjects(UActorChannel* Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags) override;
47 UFUNCTION(BlueprintCallable, Category = "VRGripInterface")
48 void SetDenyGripping(
bool bDenyGripping);
51 UFUNCTION(BlueprintCallable, Category = "VRGripInterface")
52 void SetGripPriority(
int NewGripPriority);
56 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
57 FVROnGripSignature OnGripped;
61 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
62 FVROnDropSignature OnDropped;
66 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
67 FVROnGripSignature OnSecondaryGripAdded;
71 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
72 FVROnGripSignature OnSecondaryGripRemoved;
79 virtual
void GetOwnedGameplayTags(FGameplayTagContainer& TagContainer)
const override
81 TagContainer = GameplayTags;
85 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"GameplayTags")
86 FGameplayTagContainer GameplayTags;
90 virtual
void PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker) override;
94 virtual
void PreDestroyFromReplication() override;
96 virtual
void GetSubobjectsWithStableNamesForNetworking(TArray<
UObject*> &ObjList) override;
99 virtual
void OnComponentDestroyed(
bool bDestroyingHierarchy) override;
102 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
103 bool bRepGripSettingsAndGameplayTags;
106 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
107 bool bReplicateMovement;
109 bool bOriginalReplicatesMovement;
111 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface")
122 virtual
bool SimulateOnDrop_Implementation() override;
137 virtual
void GetGripStiffnessAndDamping_Implementation(
float& GripStiffnessOut,
float& GripDampingOut) override;
143 virtual
float GripBreakDistance_Implementation() override;
146 virtual
void ClosestGripSlotInRange_Implementation(FVector WorldLocation,
bool bSecondarySlot,
bool& bHadSlotInRange, FTransform& SlotWorldTransform, FName& SlotName,
UGripMotionControllerComponent* CallingController =
nullptr, FName OverridePrefix = NAME_None) override;
149 virtual
bool AllowsMultipleGrips_Implementation() override;
152 virtual
void IsHeld_Implementation(TArray<
FBPGripPair>& HoldingControllers,
bool& bIsHeld) override;
164 virtual
bool GetGripScripts_Implementation(TArray<
UVRGripScriptBase*>& ArrayReference) override;
192 virtual
void OnUsed_Implementation() override;
195 virtual
void OnEndUsed_Implementation() override;
198 virtual
void OnSecondaryUsed_Implementation() override;
201 virtual
void OnEndSecondaryUsed_Implementation() override;
204 virtual
void OnInput_Implementation(FKey Key, EInputEvent KeyEvent) override;