Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Webinar Youtube link

Discussion in 'Localization Tools' started by jGate99, Dec 25, 2020.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,845
    Hi there,

    When can we expect the recording of 17 December Webinar?

    Thanks
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Soon hopefully. I'm just waiting for it to be uploaded.
     
    jGate99 likes this.
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Here is the link
     
    unknowndevice, Peter77 and jGate99 like this.
  4. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,845
    awesome :)
     
    karl_jones likes this.
  5. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,444
    The "global variables" that are used to substitute values in localized strings is a brilliant idea! I often needed such functionality, but it never occurred to me that such global replacement table would solve this. Very clever!
     
    karl_jones likes this.
  6. unknowndevice

    unknowndevice

    Joined:
    Sep 13, 2016
    Posts:
    86
    The localized property variants is a great idea! It'll will make a lot of the common use cases really easy.

    -

    I wonder would be possible to have a component that "syncs groups" of text to a common specified value. For example say you have a menu list of items, you change the language and one of the items is too width so the font size needs to be reduced slightly (as in your example). It would be nice for example to have an easy way tell every item in the list to resize to the smallest font size within the group to keep consistency. In your example you know ahead of time you need to reduce it so you could do this, but there are multiple cases where you won't know ahead of time. tldr (every component in this group will sync their specified property/value to this other property/value/rule set)

    Another example I've thought about is say you've a dynamically sized string that can be anything from 5-20 characters. For example you let the player name their save files. In non-english languages to prevent overflow a common thing that's done is reducing the character spacing depending on the character count. It'd be nice to have overflow options like this.

    -

    While you could program custom solutions for these I have done localization for multiple games and these are common issues to make menus look nice across multiple languages, so I thought I should mention it since it seems in the same spirit of what you're trying to achieve.
     
    karl_jones likes this.
  7. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Hmm I'm not entirely sure if you would need localized properties for this use case. you could always do this with a script that responds to language changes. Its a bit like having a group best fit option.

    Can you provide more details about this? Do you have an example so I can better understand?
     
  8. unknowndevice

    unknowndevice

    Joined:
    Sep 13, 2016
    Posts:
    86
    Sorry. You're probably right about that!
    Sure! I think this is also a similar case as above. Now that I have thought about it a bit more I guess what I'm getting at is a lot of the tweaking solutions to handle overflow could be automated if you already know the limits.

    1. you have a button with a set size. in the default language everything has enough space.
    2. someone changes the language and now it overflows
    3. we use character spacing to control the overflow (rather than resize). it would be nice to automate this since you know the width limit of the button.
     

    Attached Files:

  9. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Ah, I see. So a bit like the Best fit option but changing the spacing instead of size. Ill bring it up with the TMP developer and see what they think.
     
    unknowndevice and Peter77 like this.
  10. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    The TMP dev said there is an option that changes the width of characters as a % ... it is the WD option in the auto size options. There is also a line spacing adjustment option. Before point size is adjusted in auto-size, these two options are considered first. Ie. as a last resort, auto-size adjusts the point size which is more visually impactful than changing the width of the characters while maintaining the same point size or adjusting the line spacing (slightly).
    To test the WD% ... try something like 10000000. with value of 50%

    Does that work for you?
     
    unknowndevice likes this.
  11. unknowndevice

    unknowndevice

    Joined:
    Sep 13, 2016
    Posts:
    86
    Yes that sounds like exactly what I was talking about. Sorry, I should have checked the documentation more closely. I didn't mean for you to do the searching for me. Thanks for following up and helping!
     
    Last edited: Jan 9, 2021
    karl_jones likes this.
  12. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,845
    Hi @karl_jones
    As localization package has progressed a lot since this video, So is there any recent video with updated content?
    Thanks
     
  13. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    jGate99 likes this.
  14. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,845
    karl_jones likes this.