What is the difference between Object and GameObject ?
How do I use the gameObject?
I tried to add the localization script to the parent (Page1)
and I was expecting the script to activate and dezactivate the relevant gameObjects (children of the Page1 and referenced in localization)
It only shows me on screen the name of the objects
The administrator has disabled public write access.
The GameObject type is meant to load prefabs dynamically.
The example scene 'I2Localization Standard Components' has an example of loading different prefabs (Cube, Sphere, Cylinder) depending on the language. Which is normally what you want to avoid having lots of disabled objects that are not using in the current language.
In the mean time, you can do this by using the callbacks. Just create the following script and attach it to your Localize object:
public class MyChildToggle : MonoBehaviour
public void OnModifyLocalization()
var tr = Localize.CurrentLocalizeComponent.GetComponent<Transform> ();
// Find child with the name set in the Translation
var child = tr.Find (Localize.MainTranslation);
// if the child is found, change the active state
if (child != null)
// disable all childs except the found one
foreach (Transform obj in tr)
obj.gameObject.SetActive (obj == tr);
That version fixes the GameObject Term's type that was not doing any spawning, and also adds a new term type "Child". This type, enables the child object with the name matching the one in the translations.
Hope that helps,
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!