Welcome, Guest
Username: Password: Remember me

TOPIC: 'Set Language' script seems to override Callbacks

'Set Language' script seems to override Callbacks 4 months 1 week ago #3089

  • EdSludden
  • EdSludden's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
I have a button in my main menu which uses the 'Set Language' script, and whenever its pressed, the text components on other gameobjects are always translated. This is desired behavior.

However, if I use a Callback function within the Text Components 'Localize' script, I can't modify the text to ignore the translation when the Set Language script is used.

e.g. If a user inputs their name in a text box, I used the callback function to get the script to ignore the translation. But the Set Language script always resets the Text component to its default value, and then displays it.

I can't seem to update this text component at runtime or in editor. Am I using the Callbacks properly?

Thankyou.
The administrator has disabled public write access.

'Set Language' script seems to override Callbacks 4 months 1 week ago #3090

  • EdSludden
  • EdSludden's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
I think I can get around this by disabling the Localize component by default, and enabling it(or not) after the Set Language script is used.
The administrator has disabled public write access.

'Set Language' script seems to override Callbacks 4 months 1 week ago #3091

  • EdSludden
  • EdSludden's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
Yes, it worked. This thread can probably be closed.

Many thanks!
The administrator has disabled public write access.
Time to create page: 0.160 seconds
Colors