纳金网

标题: unity3d游戏本地化的研究,Localizing a Unity3D Game(一) [打印本页]

作者: 会飞的鱼    时间: 2011-12-15 14:05
标题: unity3d游戏本地化的研究,Localizing a Unity3D Game(一)
一个基本的思路,可惜是全英文的,应该是借助texture来进行多语言的实现吧。
Games created using the Unity3D game engine can be easily localized, thanks to the great flexibility provided by their components system, but several choices must be made achieve it. Indeed, a decision must be made on how exactly to create and use localizable data within the game.
One approach, which I would call the “easy way” is to ensure that all the game text is only present in the game code. That way, before displaying any text string to the user, a localization table can used to translate the string into the user’s language. The main drawback of this method is that all the text is rendered programmatically, which will probably not give the flexibility of having the text manually integrated into textures by an artist.
The opposite idea would be to include all the texts inside textures such that they are rendered exactly as desired giving the best visual result. Localizing these assets thus requires translating the text directly into the textures and creating a system that chooses automatically the correct texture.
We developed an iPhone game using the Unity3D game engine that uses both of these strategies to display localized text to the users. Messages displayed dynamically and information display is rendered programmatically using the first approach. Story and GUI-related messages are directly included into textures to provide pertty visual integration of the localized content.
Implementing the first technique was easily achieved by using a csv file parser. We chose to use a csv file as our localization database since it is a simple and convenient format, which can be edited under tools like Microsoft Office or OpenOffice by our translation team. Using the in-code English text strings as our database key, we then simply use a translation method before displaying a string in the game. In our case, this function can be summarized by the following code:





由 u8 发表


作者: 菜刀吻电线    时间: 2012-1-25 23:22
新词新语迎新年, 年味十足乃作年.

作者: tc    时间: 2012-3-9 23:26
精典,学习了!

作者: C.R.CAN    时间: 2012-4-8 23:29
都闪开,介个帖子,偶来顶

作者: 晃晃    时间: 2012-4-9 23:31
水。。。

作者: 奇    时间: 2012-4-10 23:21
水……生命之源……灌……

作者: C.R.CAN    时间: 2012-6-28 23:27
楼主收集的可真全哦

作者: 奇    时间: 2012-11-29 23:24
好`我顶``顶顶

作者: 奇    时间: 2013-1-29 23:21
呵呵,真得不错哦!!





欢迎光临 纳金网 (http://rs.narkii.com/club/) Powered by Discuz! X2.5