To have the player enter a text, you need to use a Value Option Dialogue node, storing the text into a string variable. For the value input of the dialogue: - option type: Custom - variable key/origin: set up as you need - input type: String
The rest is just defining e.g. the name of the text field or message content, UI box selection, etc. This uses the string input prefab you've set up for your UI system (or UI box), see the initial Unity UI setup for details.
After the node, you'll have the entered text stored in the variable you defined and can use it in other places, e.g. to rename a combatant (Set Combatant Name node) or display it in a dialogue using text codes (see the More > Variables buttons above a text area while editing).
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
For the value input of the dialogue:
- option type: Custom
- variable key/origin: set up as you need
- input type: String
The rest is just defining e.g. the name of the text field or message content, UI box selection, etc.
This uses the string input prefab you've set up for your UI system (or UI box), see the initial Unity UI setup for details.
After the node, you'll have the entered text stored in the variable you defined and can use it in other places, e.g. to rename a combatant (Set Combatant Name node) or display it in a dialogue using text codes (see the More > Variables buttons above a text area while editing).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!