Custom Icons for Languages in the Editor

Today I added the ability to select custom icons for languages in the Editor.

How to Select a Custom Icon?

To select a custom icon just follow the next steps:

  1. Click the popup menu in the toolbar.
  2. Click the Options button of a language.
  3. Click the Select Custom Icon option. The object picker prompts you to select a Texture2D.
Select custom icon steps

NOTE: The size used by built-in flag icons is 16x11 pixels. But you can use textures with any size.

How to Remove a Custom Icon?

To remove a custom icon just click the button with a cross drawn at the right of the Select Custom Icon option. See the above image.

NOTE: This button is drawn only if the language has a custom icon.

Where are displayed the Custom Icons?

The custom icons are displayed in the popup menu of the CGLocalization window toolbar and in the Languages window:

Custom icons in the popup menu and in the Languages window

Also in the HierarchyView in gameobjects that has the ChangeLanguage script attached:

Custom icon in a ChangeLanguage gameobject


NOTE: This update will be available in the version 1.2 of the tool.

Comments