Unity3D — Localization Games

Text over graphic localization!

You might’ve been wondering how to localize a graphic or images related language. I also recommend you to watch this official tutorial from Unity3D about localizing your content.

The trick is I put my graphic to Resources directory, and load it using the technique explained above. Thanks to Unity, they provide default function to get the Resources directory.

Sprite newSprite = Resources.Load(“image-location”, typeof(Sprite)) as Sprite;
currSprite.overrideSprite = newSprite;

Don’t forget to handle for NullReferences.

A few references:

Happy coding, guys!

Show your support

Clapping shows how much you appreciated Mochamad Iqbal Dwi Cahyo’s story.