> For the complete documentation index, see [llms.txt](https://octanta-studio.gitbook.io/automatic-tutorial-maker-for-unity-in-game-tips/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://octanta-studio.gitbook.io/automatic-tutorial-maker-for-unity-in-game-tips/usage-guide/advanced-rebinding.md).

# Advanced: Rebinding

The localization system developed for ATM allows calling text tooltips that support key rebinding or other values. For this, a self-adjusting text is required, which takes its value directly from a CSV table. It can be displayed on the scene and assigned manually, or embedded into a tooltip prefab and given a LocalizedTooltip component.

1. In the table, **create translation rows with placeholders.** It’s important to use curly braces like `{var}.` For example:

In Ukrainian:\
`Натисніть {key} щоб взаємодіяти`

In English:\
`Press {key} to interact`

In Japanese, where {key} is repositioned for naturalness:\
`{key}キーでインタラクト`

2. When calling the text from a script, **insert the value into the placeholder via ReplacePlaceholders()**. You can substitute anything for `{key}`, even a key entered by the player. The text will be returned with the word order already adjusted.

```cs
using AutomaticTutorialMaker;

[SerializeField] private InputStringsScriptableObject textStrings;

var keyToInteract = "E"; // the value that will fill the placeholder in the text

objectText.text = textStrings.ReplacePlaceholdersByKey("key_interaction_tip", keyToInteract); // it will return the text depending on the current language

// 🇺🇦→ Натисніть E щоб взаємодіяти
// 🇬🇧→ Press E to interact
// 🇯🇵→ Eキーでインタラクト
```

{% embed url="<https://youtu.be/0LdXRFOFWAw?si=Ih55R_G40qL_Bqhz>" %}

[Try the free Localization System Mini to practice →](https://assetstore.unity.com/packages/tools/localization/tooltip-localization-system-mini-347544)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://octanta-studio.gitbook.io/automatic-tutorial-maker-for-unity-in-game-tips/usage-guide/advanced-rebinding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
