Animated UV Scrolling

Featured

Comments

2 comments

  • Avatar
    mrtolien

    Hello Jacob!

    I tried the UV animated scroll with some sprite i've upload in the project panel, I've used the alpha_cutout_2sided  from the Cutout template so i've set all the parameters as you show us in this tutorial, and it's working great but only on the preview panel and when I export it to preview it on my phone it's showing nothing :'(

     

    Do this scroll animation doesn't works in snapchat ?

     

    Thanks! :)

  • Avatar
    Jacob

    Hi mrtolien,

    There's been some engine changes in the Snapchat app that have affected UV scrolling slightly. Now, "repeat" and "mirrored repeat" wrap modes will only work on textures that have power of 2 sizes.  Unfortunately, this change isn't reflected yet in Lens Studio, so non power of 2 textures will continue to work there as they did before.

    So, for animated uv scrolling to work on device, each side of your texture should be a power of 2 value (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048)

    Thanks for pointing this out! I'm going to update the guide above to make this change clear. Let me know if you have any more questions!

Please sign in to leave a comment.