Way to animate a texturerect?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By psear

I know there is animated texture, which has the option of outlining frames, but I have some spritesheets which I want to use. I don’t want to break them down, and the SpriteFrames resource editor is really fantastic in how easy it is to take frames from a sheet, eliminating the need for individual files and messing around with coordinates in the textures.

At present I have a control node with an animatedsprite as a child. It works okay, but the bounding rectangle of the parent container is not updated with the borders of the texture (obviously, because it’s not a control node and has none of the control properties). I know that TextureRect could be used here with an AnimatedTexture resource, but is there a way to accomplish this whilst still being able to use a SpriteFrames resource?

:bust_in_silhouette: Reply From: exuin

As far as I know, it’s not possible to do this. But you can open a request in the proposals GitHub!