> For the complete documentation index, see [llms.txt](https://render-technologies.gitbook.io/r/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://render-technologies.gitbook.io/r/unreal-engine/nanite-foliage/interaction.md).

# Interaction

Interaction was introduced in version 2.1

### Adding Interaction to Your Character or Actor

#### Attach the Component

1. Open the **Blueprint** of your player character (or any actor you want to enable interaction for).
2. 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`**

1. Select the actor with the `BP_Interaction` component.
2. In the **Details Panel**, find the `UpdateInterval` variable under the component settings.
3. 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 is `100.0`.
  * `InteractionStrength`: Adjusts the intensity of grass interaction.
  * `InteractionSharpness`: Determines how the effect fades at the edges.
