# BindInputField

It can be useful sometimes to save a string from an input field, for example the Player Name. Let’s see how the BindInputField bindings works.&#x20;

Select the PlayerNameInputField in the scene:&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfb-pwfe7pSx2YaB5pojvjOvl6uL0VRcdqm2m6KX1IGtqszad_FWuQa_pklNsQpmpItmUAtDC84ZEr3Ae6kM7wj3psj6_gCn2n80ERkbpPdBV3M-5xE-2gPwdAeWKSXd9uvhZEuXvO8cJElfo8XFvnh0cg?key=rYLTnURk3bHoj7o_CLwGjQ" alt="" width="375"><figcaption></figcaption></figure>

Now, on this object you should find the BindInputField component:&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd6cy40UQG-SYz9Q4hn896LBvf4SYdIm-3HI6e-SJh1beijECPw0J0hovHiH4FNUvkFVsXTTvytvzDxWQCeBkTEonXWspsXlX-g0Rb3qCR6zVM96TocfAzSHct1aSdB4vPvbNdXcx-JAT_PegJB_qmACzAZ?key=rYLTnURk3bHoj7o_CLwGjQ" alt="" width="375"><figcaption></figcaption></figure>

Play the game and enter a random name in the input field at the bottom of the screen. &#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcb7kLCKmpLd088K_EBRg9q5n1D3EDAvuPJQGaGddsHcBFCrA5PDnM_sOj8Lbck8IVtOR1sS0enICpklFtp7OQw7hWeOOWgWlruCl3myIRWYMq5iGmmLaTEpDIG2-iPxhDKUgLB62cIX8fIdx7vgHzp8OeD?key=rYLTnURk3bHoj7o_CLwGjQ" alt="" width="375"><figcaption></figcaption></figure>

Now stop the game and play again. You can see that the name persisted. In this example, the string variable: example\_string\_playerName is saved. Depending on your case, you can decide to save it or not.&#x20;


---

# Agent Instructions: 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:

```
GET https://obvious-game.gitbook.io/soap/scene-documentation/2_bindings/bindinputfield.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
