Hi,
I'm trying to change a texture region attachment with assets image on a spine model, i want use image in assets but not multiple attachments in Spine.
i have do success int android native or unity, but not find some api in flutter. such in android native:
private fun Slot.changeSlotDisplay(attachmentBitmap: Bitmap) {
val atlasRegion = AtlasRegion(AndroidTexture(attachmentBitmap), 0, 0, attachmentBitmap.width, attachmentBitmap.height)
val originAttachment = this.attachment
when (originAttachment) {
is MeshAttachment -> {
originAttachment.region = atlasRegion
originAttachment.updateRegion()
}
is RegionAttachment -> {
originAttachment.region = atlasRegion
originAttachment.updateRegion()
}
}
}