Functions/Events
All the functions bellow are blueprint accessible.
void SetDetectionActive
(
const bool bNewActive
);Used to determine if the detection is active or not.
void InteractionInput
(
FString Key,
bool bPressed
);Used to tell the component that the player has pressed the interaction input.
FInteractableData GetInteractableData() const;Used to get a copy of the interactable data.
bool IsInteractionActive() const;Used to check if the interaction for this interactable is active.
float GetInteractionTime() const;Used to check the progress of the interaction with this interactable.
bool GetIsBeingOverlapped() const;Used to know if the interactable is being overlapped by the local player. (Not networked)
bool GetIsBeingHovered() constUsed to know if the interactable is being hovered by the local player. (Not networked)
void SetInteractionActive
(
bool bNewActive,
bool bLocal /* UE 5.6 upwards*/
);Used to determine if the detection is active or not for this interactable. if bLocal is true, interaction will only be enabled/disabled on the local client.
void SetInteractableDataBasedOnDataTable
(
UDataTable* DataTable,
FName RowName
);Used to set the interactable data based on a data table row.
void SetDisplayText
(
const FText NewText
);Used to change the display text.
void SetTooltipText
(
const FText NewText
);Used to change the tooltip text.
void SetInteractionDuration
(
float NewDuration
);Used to change the interaction duration in runtime
Last updated