I want to create a Sprite with its children. The Sprite will be empty but the children will 开发者_高级运维not. So I need a TextureRegion to create the sprite. Such as sprite itself is empty, I don't need to create a texture from assets, but I need a Texture to create the sprite
new Sprite(pX, pY, pTextureRegion)
How can I create an empty TextureRegion for this operation?
You can use Entity and Entity.attachChild().
精彩评论