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;
46 UFUNCTION(BlueprintCallable, Category = "VRGripInterface")
47 void SetDenyGripping(
bool bDenyGripping);
50 UFUNCTION(BlueprintCallable, Category = "VRGripInterface")
51 void SetGripPriority(
int NewGripPriority);
55 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
56 FVROnGripSignature OnGripped;
60 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
61 FVROnDropSignature OnDropped;
65 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
66 FVROnGripSignature OnSecondaryGripAdded;
70 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
71 FVROnGripSignature OnSecondaryGripRemoved;
78 virtual
void GetOwnedGameplayTags(FGameplayTagContainer& TagContainer)
const override
80 TagContainer = GameplayTags;
84 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"GameplayTags")
85 FGameplayTagContainer GameplayTags;
89 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;