Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[Localization asset] SlizzLoc

Discussion in 'Assets and Asset Store' started by SlizBen, Sep 25, 2018.

  1. SlizBen

    SlizBen

    Joined:
    May 26, 2016
    Posts:
    4
    SlizzLoc is a way to localize your game
    Installation
    Use Localization.unitypackage to automaticaly import as asset, or just import "Localization" folder to your project.

    How to use
    1.You need add localization script on some object on scene. 2. Add some language by clicking on "Add language".

    2.Add some language by clicking on "Add language".
    dbc00ba041b82fbf7649529b2a2d9c50.png

    3.Create new List with string by clicking on "Add new list".
    baa93efde62d88971c9fdebda8e77b8f.png

    4.Add new string to a new list by clicking on "Add new key" and fill in the fields.
    94d3df598a0805c4cbc829d7a0b56c21.png
    5.Now to get this string just use method Localization.GetString("list's key", "string's key") from namespace "SlizzLoc" (SlizzLoc.Localization.GetString("list's key", "string's key"))


    To change language use method SlizzLoc.Localization.Instance.ChangeLanguage(language's index)

    How to connect UIText and TextMesh with localization
    4b2fbd3f2da4ea883875c63303302024.png
    1.Press "Get all string". All text from UIText add to list with key "UI" and all text from TextMesh add to list with key "TextMesh".
    2.Now all your UITexts and TextMeshs will get it text from localization.
    8d1f80d67abe73d8d5c989a1ece675a3.png

    How to use it on NUI(Unity UI)
    Add script UGUIText to object with Text component and choose which string it must get.

    Link to download

    GitHub
     
    Last edited: Sep 26, 2018
  2. SlizBen

    SlizBen

    Joined:
    May 26, 2016
    Posts:
    4
    Added button "Get all string", with this button you connect all your UITexts and TextMeshes with Localization. All UIText connect to list with key "UI" and all TextMeshes connect to list with key "TextMesh".