开发者

andengine empty TextureRegion

开发者 https://www.devze.com 2023-04-08 17:38 出处:网络
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

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().

0

精彩评论

暂无评论...
验证码 换一张
取 消