Language prefab not loaded

More
9 years 3 months ago #397 by tman1978
Hello:

I have my language prefab in the following folder: Assets/[SOME_OTHER_FOLDER]/Resources/I2

I have found that if I do not expand this folder and select the prefab before I run the scene in the editor or do a build, the prefab doesn't get loaded and none of my translations are visible in the scene. Once I select the prefab in the editor window and re-run the scene or do a rebuild, the prefab gets loaded. Is this by design? I hope not because it is very annoying and I would hate to forget to do this before I do a build that I'm going to publish.

I'm running Unity 4.6.1 on Windows and I have version 2.3.0 of I2 installed.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago - 9 years 3 months ago #398 by Frank
Replied by Frank on topic Language prefab not loaded
The I2Languages.prefab should be in the Resources, not in a subfolder.

Assets/[SOME_OTHER_FOLDER]/Resources/I2/I2Languages.prefab will not work
Assets/[SOME_OTHER_FOLDER]/I2/Resources/I2Languages.prefab will work

If you want the plugin to load from "xxx/Resources/I2" you will need to change the LocalizationManager.cs line 168
from
GameObject Prefab = (ResourceManager.pInstance.GetAsset<GameObject>("I2Languages"));

into
GameObject Prefab = (ResourceManager.pInstance.GetAsset<GameObject>("I2/I2Languages"));

Hope that helps,
Frank

EDIT: Also, be aware that there should be only one I2Languages.prefab in the project.

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
Last edit: 9 years 3 months ago by Frank.
The following user(s) said Thank You: tman1978

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #399 by tman1978
Replied by tman1978 on topic Language prefab not loaded
Gotcha. Thanks for the quick response.

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds
Template by JoomlaShine