Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
495 stars 120 forks source link

Exception when setting transparent color #97

Closed Kalmend closed 7 years ago

Kalmend commented 7 years ago

TmxImage::FromXml call to tmxImage.ImageBitmap.SetPixel(x, y, transColor); throws an exception: "This method is not supported for bitmaps with ColorTypes of Index8."

Seanba commented 7 years ago

Can you send me the texture or bitmap you're using in this example? Thanks.

Seanba commented 7 years ago

I think I know what's going on. You're using a palletized bitmap format an I'm not handling that format at the moment. I'll put out a fix later today.

Seanba commented 7 years ago

This was fixed with Tiled2Unity version 1.0.11.1. Thanks again for notifying me of the issue.