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;
77 virtual
void GetOwnedGameplayTags(FGameplayTagContainer& TagContainer)
const override
79 TagContainer = GameplayTags;
83 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"GameplayTags")
84 FGameplayTagContainer GameplayTags;
88 virtual
void PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker) override;
92 virtual
void PreDestroyFromReplication() override;
94 virtual
void GetSubobjectsWithStableNamesForNetworking(TArray<
UObject*> &ObjList) override;
97 virtual
void OnComponentDestroyed(
bool bDestroyingHierarchy) override;
100 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
101 bool bRepGripSettingsAndGameplayTags;
104 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface|Replication")
105 bool bReplicateMovement;
107 bool bOriginalReplicatesMovement;
109 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface")
120 virtual
bool SimulateOnDrop_Implementation() override;
135 virtual
void GetGripStiffnessAndDamping_Implementation(
float& GripStiffnessOut,
float& GripDampingOut) override;
141 virtual
float GripBreakDistance_Implementation() override;
144 virtual
void ClosestGripSlotInRange_Implementation(FVector WorldLocation,
bool bSecondarySlot,
bool& bHadSlotInRange, FTransform& SlotWorldTransform, FName& SlotName,
UGripMotionControllerComponent* CallingController =
nullptr, FName OverridePrefix = NAME_None) override;
147 virtual
bool AllowsMultipleGrips_Implementation() override;
150 virtual
void IsHeld_Implementation(TArray<
FBPGripPair>& HoldingControllers,
bool& bIsHeld) override;
162 virtual
bool GetGripScripts_Implementation(TArray<
UVRGripScriptBase*>& ArrayReference) override;
190 virtual
void OnUsed_Implementation() override;
193 virtual
void OnEndUsed_Implementation() override;
196 virtual
void OnSecondaryUsed_Implementation() override;
199 virtual
void OnEndSecondaryUsed_Implementation() override;
202 virtual
void OnInput_Implementation(FKey Key, EInputEvent KeyEvent) override;