0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

libGdxのTexturePackerでSuffixがtrimされてしまう問題

0
Last updated at Posted at 2017-09-11

問題点

  • libGdxのTexturePackerを使った
  • button_1.png, button_2.png の様な 名前_数字.png ファイルが 名前.png に纏まってしまった
    • 全く別の画像なのに・・・
    • アンダーバー(アンダースコア)使わない形に一括リネームはしたくない

 原因

  • ファイル名末端の _数字 はデフォルトの動作で 「index」と見做され、整理されることが原因

 解決方法

  • nightlyの方を使用し設定情報を渡す
  • パッキング設定を config.json の様な名前で作成し、引数で渡す
config.json
{
"useIndexes":false
}
  • 実行する
java -cp gdx.jar:gdx-tools.jar com.badlogic.gdx.tools.texturepacker.TexturePacker src dst result config.json
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?