Search Unity

Question 3x3 Flipbooks don't work?

Discussion in 'Shader Graph' started by Tibsterx, Apr 21, 2021.

  1. Tibsterx

    Tibsterx

    Joined:
    Mar 4, 2020
    Posts:
    10
    Hello there. I am getting strange behavior from the flipbook node. When using any other size of flip book, it works fine, but when the width is a multiple of 3, it has problems.
    Every third(or 6th, or 9th, etc.) tile, it loops back and displays the wrong one( he one two tiles prior). For example, here is an image:
    upload_2021-4-21_14-23-3.png
    And here are the nodes:
    upload_2021-4-21_14-23-48.png
    At tile 0, it will show 0,
    At 1, it will show one,
    At 2, it will show two,
    but at 3 it will show 0 again
    and it will glitch out every third one continuing on.
    It works with every other size of flipbook, so I'm not sure what's going on here.
    Thanks for your help!
     

    Attached Files:

    Last edited: Sep 17, 2021