Animated tiles on GridMaps?

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.

You modify it in the tile set tab, see video

This video is for TileMaps, which are 2D nodes. I’m asking about GridMap, which is the 3D equivalent and doesn’t function the same way.

sorry, i saw tile and animated textures. Anyway not possible as the grid map is trying to optimize the meshes with the multi mesh feature.

There is however some addon that can swap a instance for a scene. or this tutorial on how to write it yourself.