I have a simple animation for lava that I want to play. Ideally, it should play only when visible on the screen, BUT for now, it is set to always animate (screenshot attached).
Each Lava Pool has 1 LavaAnimation, and a number of SpriteMask LavaTiles. The LavaAnimation is scaled so that it is large enough to cover all tiles.
However, the “visible on screen” part doesn’t seem to be working as intended. What did I do wrong?
For clarity, the brown circle is the player. This is when the animation DOES play (please note the center of the animation is shown on scene view, so animation is definitely “visible”):
And yet this is when animation does not play despite being fully on screen: