Quickly create and modify localized field text using properties of MyString
Last updated
Last updated
A field of type MyString for any object will usually look like the GUI block shown in the red box above. It looks complicated, but there are actually only four places to do it, as shown in the image below: 1, 2, 3, 4:
Using 1 and 3, you can quickly create a field in the StringTable of the MyString reference, reference the newly created field in the current MyString, and write a string of the same name as the field in the text of the current language of the new field. The operation is as follows:
Enter the name of the field you want to create in 1, for example: 'TestField 2'
Click the 3 button.
Note: The current language indicated in the red box above is simplified Chinese. That is to say, a new field named TestField 2 is created and 'TestField 2' is filled into the simplified Chinese text. However, 'TestField 2' is not the simplified Chinese text we want. So you should switch the current language to English before creating.
Using 1 and 2, you can quickly overwrite the text in the current language corresponding to the associated field in the StringTable referenced by MyString. In special cases, if the field name is equal to the text in the current language before overwriting, the field name is also changed during overwriting so that the field name is still equal to the text in the current language after overwriting (sometimes useful!).
In 4, the text for the current language of the field associated with MyString is usually displayed, so if you want to simply change the value, you can edit it directly in 4. If the field names are equal to text in the current language and you want to edit them both, do not change them here, but use 1 and 2 instead.
If the field names do not correspond to text in the current language and you want to edit them simultaneously, it is recommended to open the text table editor directly, where the changes are more intuitive. To quickly open the text table editor, click the white dot button in the image below: