Open phicore opened 5 years ago
I suppose I can live with loading images instead of using an atlas. But what bothers me more is the number of draw call that is easily above 50 while I create a lot of buttons (in a listview)
Not interesting the core developpers it seems...
Could it be possible to have an answer to this issue or at least a comment
Same problem for me but if I export the spritesheets without polygon outlines it works for me
Creating a UIButtons with individual sprites and activating Scale9 works as expected, But as soon I replace the individual sprites (png images) with images from the SpriteFrameCache (by setting the ResourceType to PLIST) the buttons size is no more stretched according to the given size. The sprites are shown as if Scale9Enabled was false.
I used SpriteFrameCache in the first place to lower the draw calls as I create a lot of buttons with the same images. But in addition to the issue described above, using SpriteFrameCache does not change the drawcall count.
Result is OK with individual prites:
code:
Result is not right with Spriteframe cache (using Widget::TextureResType::PLIST):