Hello, I am trying to create animated sprite, I am using script which sets the current spriteFrame in tween update. Here is simple project:
PlayCanvas | HTML5 Game Engine . Everything works fine on computer, but on the mobile as soon as the animation start I am getting bugged frames which looks like this
I tried multiple different textures to make sure the texture isn’t wrong, but still the same error.
How large is the texture? If its more than the max size supported by device, the engine resizes to the device max size. This can be 4096 X 4096 on mobile
02:41PM - 24 Apr 21 UTC
On Android chrome:
It renders correctly if it's a sprite component but not as a UI element.
My guess is that the texture height >4K so gets downsampled by the engine and has affected the UI rendering in some way.
Making the texture 50% smaller worksaround the issue.
Ah, that is the problem, texture has 6000pixels width, so I will reduce it. Thank you!