libgdx的TextureAtlas.findRegion(String name),参数name原来只是图片文件的名字,不包括后缀名的,害我费了半天劲。
TextureAtlas.creatSprite的参数也一样。
下划线也不行。
找到了,这里http://code.google.com/p/libgdx/wiki/TexturePacker的Image File Names下有说明。
libgdx的TextureAtlas.findRegion(String name),参数name原来只是图片文件的名字,不包括后缀名的,害我费了半天劲。
TextureAtlas.creatSprite的参数也一样。
下划线也不行。
找到了,这里http://code.google.com/p/libgdx/wiki/TexturePacker的Image File Names下有说明。