Convert Resource References Associations to Paths
Last updated
Last updated
When IResLoader interface implementation, and assignment instance to LocalizationSetting. Loader, through the loader MyLocalization can know for what kind of localized resources path is generated.
To convert a reference to a single resource, use the button in the red line below:
The arrow pointing to the right is the path to the generated resource, and the arrow pointing to the left is the path to the generated resource reference. (The same goes for the audio files associated with the text table.)
To batch convert, use the menu command shown in the following figure:
Clicking the gear button on the LocalizationSetting component will bring up a set of commands related to the resource path that can be used to easily generate the path and remove the resource reference data from Unity's default association.
Look at the menu command name, it should be clear, click the first command, you can generate the path of all resources in the localization item container and remove the resource reference data.
Note: The commands to generate a path and remove an association and the commands to associate a resource and remove a path are in safe mode by default, which means that no matter how they are used, the resource reference information will not be completely discarded. In the event of failure, the original data will always be retained. For example, if the localization item references Unity's default resource Arial, in this case, there is no need to return a path to MyLocalization if the generated path doesn't load properly. Just leave the path blank. Executing the generate path command won't lose the Arial reference.
The same can be done with the audio files associated with the text table: