Interaction
Interaction was introduced in version 2.1
Adding Interaction to Your Character or Actor
Attach the Component
Open the Blueprint of your player character (or any actor you want to enable interaction for).
Add the
BP_Interaction
component to your actor.
That's it! Your actor is now set up to trigger interactions.
Customization Options
1. Adjusting Update Interval for Performance
By default, the BP_Interaction
component uses the Tick()
function, which runs every frame. This ensures precise and frequent updates, but it may impact performance in complex scenes or on lower-end hardware.
To optimize performance, we provide an adjustable variable: UpdateInterval
.
What is UpdateInterval
?
Default value:
0.01
This means the system updates 100 times per second, ensuring smooth and highly responsive interactions.You can increase this value to reduce the frequency of updates and improve performance. For example:
0.02
: Updates 50 times per second.0.05
: Updates 20 times per second.
How to Adjust the UpdateInterval
Select the actor with the
BP_Interaction
component.In the Details Panel, find the
UpdateInterval
variable under the component settings.Adjust the value as needed:
Lower values (e.g.,
0.01
): Higher update frequency for smoother interactions.Higher values (e.g.,
0.05
or above): Lower update frequency for better performance.
2. Material Instance Settings
Customize interaction properties directly in the material instance:
InteractionRadius
: Controls the area affected by the player's proximity. Default is100.0
.InteractionStrength
: Adjusts the intensity of grass interaction.InteractionSharpness
: Determines how the effect fades at the edges.
Last updated