Unity 在 Localization 的 AssetTable 中如何使用 合图 (SpriteAtlas 以及 Sprite-Multiple)

参考: Is it possible to use Sprite Atlas with the Sprite Table? - Unity Forum

 

总结:

使用折中方案,通过 StringTable 记录不同语言中使用的资源的路径(path)

  * 如果资源放在 Resources 里,那么就用 Resources.LoadAll<Sprtie>(path) 然后通过 index 来获取特定的 sprite。

  * 如果资源打包到 Addressable 中,那么就只用使用 特定sprite 的 Addressable Name 来获取就行。

  * 至于 AssetBundle —— 等等,你都使用 Localization 了,怎么还在用 AssetBundle。

posted @ 2024-03-23 02:54  bakabird1998  阅读(4)  评论(0编辑  收藏  举报