44 bool IsSupportedForNetworking()
const override
52 bool IsScriptActive();
55 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category =
"GSSettings")
62 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "GSSettings")
66 FORCEINLINE
bool Wants_DenyAutoDrop()
72 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category =
"GSSettings")
76 FORCEINLINE
bool Wants_ToForceDrop()
82 UPROPERTY(BlueprintReadWrite, Category =
"GSSettings")
86 UFUNCTION(BlueprintCallable, Category = "VRGripScript")
87 void ForceGripToDrop()
93 FORCEINLINE
bool Wants_DenyLateUpdates()
95 return bDenyLateUpdates;
99 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category =
"GSSettings")
100 bool bDenyLateUpdates;
103 FORCEINLINE
bool InjectPrePhysicsHandle()
105 return bInjectPrePhysicsHandle;
109 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category =
"GSSettings")
110 bool bInjectPrePhysicsHandle;
115 FORCEINLINE
bool InjectPostPhysicsHandle()
117 return bInjectPostPhysicsHandle;
121 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category =
"GSSettings")
122 bool bInjectPostPhysicsHandle;
127 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "VRGripScript")
131 virtual
void GetLifetimeReplicatedProps(TArray< class FLifetimeProperty > & OutLifetimeProps) const override;
135 virtual
bool CallRemoteFunction(UFunction *
Function,
void * Parms, FOutParmRec * OutParms, FFrame * Stack) override;
136 virtual int32 GetFunctionCallspace(UFunction *
Function, FFrame * Stack) override;
142 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly, Category = "TickSettings")
146 UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "TickSettings")
150 UFUNCTION(BlueprintCallable, Category = "TickSettings")
151 void SetTickEnabled(
bool bTickEnabled);
159 virtual
void Tick(
float DeltaTime) override;
160 virtual
bool IsTickable() const override;
161 virtual UWorld* GetTickableGameObjectWorld() const override;
162 virtual
bool IsTickableInEditor() const;
163 virtual
bool IsTickableWhenPaused() const override;
164 virtual ETickableTickType GetTickableTickType() const;
165 virtual TStatId GetStatId() const override;
166 virtual UWorld* GetWorld() const override;
172 UFUNCTION(BlueprintPure, Category = "VRGripScript")
176 UFUNCTION(BlueprintPure, Category = "VRGripScript")
177 FTransform GetParentTransform(
bool bGetWorldTransform = true, FName BoneName = NAME_None);
181 UFUNCTION(BlueprintCallable, Category = "VRGripScript")
185 FBodyInstance * GetParentBodyInstance(FName OptionalBoneName = NAME_None);
188 UFUNCTION(BlueprintPure, Category = "VRGripScript")
192 UFUNCTION(BlueprintPure, Category = "VRGripScript")
196 UFUNCTION(BlueprintPure, Category = "VRGripScript")
200 UFUNCTION(BlueprintPure, Category = "VRGripScript")
203 void EndPlay(const EEndPlayReason::Type EndPlayReason);
208 UFUNCTION(BlueprintNativeEvent, Category = "VRGripScript")
209 void OnEndPlay(const EEndPlayReason::Type EndPlayReason);
210 virtual
void OnEndPlay_Implementation(const EEndPlayReason::Type EndPlayReason);
212 void BeginPlay(
UObject * CallingOwner);
213 bool bAlreadyNotifiedPlay = false;
214 virtual
void PostInitProperties() override;
219 UFUNCTION(BlueprintNativeEvent, Category = "VRGripScript")
220 void OnBeginPlay(
UObject * CallingOwner);
221 virtual
void OnBeginPlay_Implementation(
UObject * CallingOwner);
224 UFUNCTION(BlueprintNativeEvent, Category = "VRGripScript")
225 bool GetWorldTransform(
UGripMotionControllerComponent * GrippingController,
float DeltaTime, UPARAM(ref) FTransform & WorldTransform, const FTransform &ParentTransform, UPARAM(ref)
FBPActorGripInformation &Grip,
AActor * actor, UPrimitiveComponent * root,
bool bRootHasInterface,
bool bActorHasInterface,
bool bIsForTeleport);
226 virtual
bool GetWorldTransform_Implementation(
UGripMotionControllerComponent * OwningController,
float DeltaTime, FTransform & WorldTransform, const FTransform &ParentTransform,
FBPActorGripInformation &Grip,
AActor * actor, UPrimitiveComponent * root,
bool bRootHasInterface,
bool bActorHasInterface,
bool bIsForTeleport);
229 UFUNCTION(BlueprintNativeEvent, Category = "VRGripScript")
234 UFUNCTION(BlueprintNativeEvent, Category = "VRGripScript")
239 UFUNCTION(BlueprintNativeEvent, Category = "VRGripInterface")
244 UFUNCTION(BlueprintNativeEvent, Category = "VRGripInterface")
250 virtual
bool CallCorrect_GetWorldTransform(
UGripMotionControllerComponent * OwningController,
float DeltaTime, FTransform & WorldTransform, const FTransform &ParentTransform,
FBPActorGripInformation &Grip,
AActor * actor, UPrimitiveComponent * root,
bool bRootHasInterface,
bool bActorHasInterface,
bool bIsForTeleport)
252 return GetWorldTransform_Implementation(OwningController, DeltaTime, WorldTransform, ParentTransform, Grip, actor, root, bRootHasInterface, bActorHasInterface, bIsForTeleport);
257UCLASS(Blueprintable, Abstract, ClassGroup = (
VRExpansionPlugin), ShowCategories = DefaultSettings)
263 virtual
bool CallCorrect_GetWorldTransform(
UGripMotionControllerComponent * OwningController,
float DeltaTime, FTransform & WorldTransform, const FTransform &ParentTransform,
FBPActorGripInformation &Grip,
AActor * actor, UPrimitiveComponent * root,
bool bRootHasInterface,
bool bActorHasInterface,
bool bIsForTeleport)
override
265 return GetWorldTransform(OwningController, DeltaTime, WorldTransform, ParentTransform, Grip, actor, root, bRootHasInterface, bActorHasInterface, bIsForTeleport);
268 virtual void Tick(
float DeltaTime)
override;
271 UFUNCTION(BlueprintImplementableEvent, meta = (
DisplayName =
"Tick"))
272 void ReceiveTick(
float DeltaSeconds);