Forum rules - please read before posting.

Set Input Box text

Hey, I have problem with Set Input Box text - It doesnt change text,
I cannot get this to work. Tried both - AC menu and unity prefab - but it just says Label - all the settings here: https://imgur.com/a/pIW3wQs

Thanks for tips!

Comments

  • Your "Input" element is a Label, not an Input.

    The Action only sets the contents of Input element types - not elements that you've named "Input".

    Assuming you want to change the Label's text, and not deal with an actual Input element (i.e. one that the player can enter text into), then you can set the Label's text to a variable token, e.g. [var:0], to have it display a Global String variable's value (replacing "0" with the ID of the variable).

    You can then use the Variable: Set Action to change the String variable's value, and - in turn - the Label's text.

    For more on text tokens, see the Manual's "Text tokens" chapter as well as this tutorial.

  • Thanks Chris!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.