andengine 空TextureRegion
我想创建一个精灵及其子元素。精灵将是空的,但孩子们不会。所以我需要一个TextureRegion来创建精灵。比如精灵本身是空的,我不需要从资源中创建纹理,但我需要一个纹理来创建精灵,
new Sprite(pX, pY, pTextureRegion)
如何为这个操作创建一个空的TextureRegion?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用实体 和 Entity.attachChild()。
You can use Entity and Entity.attachChild().