Forum rules - please read before posting.

Change texture language

edited April 2014 in Technical Q&A
Hi all,
i have 2 signs with 2 different texture. They are in the same place, but only one is visible. One is in Italian language, the other in English.
There is a way to hide the one or the other When the player change the language in the menù game?

Thank'you
Grazie

;-)

Comments

  • edited April 2014
    Nice eye for detail!  For something this specific, you'll need to write a custom script that changes the texture if it's the wrong one.

    Put this into an Update () function:

    int language = GameObject.FindWithTag (Tags.persistentEngine).GetComponent <Options>().optionsData.language;
    if (language == 0)
    {
      // Change texture to default
    }
    else if (language == 1)
    {
      // Change texture to translation
    }
  • Thanx for your suggestion Chris, as usual! ;-)
    And for the code, yep! :-)
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.