Godot Version
4.4.1
Question
How can I put an animated texture on models in a GridMap?
Nothing I’ve tried has worked so far. AnimatedTexture is marked as nonfunctional with the current renderer and is pegged for possible future removal. The current method for animating textures on models seems to be setting the UV offset parameter via an AnimationPlayer, but this doesn’t work via GridMap, the AnimationPlayer is not preserved when exporting to a MeshLibrary.
Is there any way of doing this? I need animated textures on tiles for my game. All tiles of the same type animating at the same time is fine.
The only way I can think to do it would be putting a custom shader on my tiles, making a global shader parameter for a UV offset, and setting that via an AnimationPlayer on the main scene, but that method seems like a hack/workaround and I’m not sure if doing it that way is a good idea.