30 virtual
void BeginPlay() override;
31 virtual
void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
38 UPROPERTY(EditAnywhere, Replicated, BlueprintReadOnly, Instanced, Category = "VRGripInterface")
44 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "VRGripInterface")
45 bool bReplicateGripScripts;
47 bool ReplicateSubobjects(UActorChannel* Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags) override;
50 UFUNCTION(BlueprintCallable, Category = "VRGripInterface")
51 void SetDenyGripping(
bool bDenyGripping);
54 UFUNCTION(BlueprintCallable, Category = "VRGripInterface")
55 void SetGripPriority(
int NewGripPriority);
59 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
60 FVROnGripSignature OnGripped;
64 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
65 FVROnDropSignature OnDropped;
69 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
70 FVROnGripSignature OnSecondaryGripAdded;
74 UPROPERTY(BlueprintAssignable, Category = "Grip Events")
75 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;