Hello, I have created a small extension that allows you to change and animate textures for GLB models. You can swap textures during gameplay by loading them from project resources, as well as offset their UVs. This will help you not only create different versions of your objects with different textures, but also various effects, including full-fledged sprite sheet animations on 3D objects.
Extension on Itch: https://7togo.itch.io/3d-texture-changer-gdevelop-extension
ACTIONS: Texture.
• Change texture - change texture on a specific material slot (from project resources only).
• Reset texture - reset texture on a chosen material slot to the original GLB texture.
ACTIONS: UV Offset.
• Change UV offset X - shift texture horizontally in pixels.
• Change UV offset Y - shift texture vertically in pixels.
• Reset UV offset - return UV offset to 0, 0 on a specific material slot.
CONDITIONS: UV Offset.
• Check UV offset X - compare current X offset with a value.
• Check UV offset Y -compare current Y offset with a value.
EXPRESSIONS: UV Offset.
• GetUVOffsetX(Object, Slot) - returns current X offset in pixels.
• GetUVOffsetY(Object, Slot) - returns current Y offset in pixels.
