11 Months Ago
Image loader creates textures for multiple frames if they exist. Whitelist gif and webp. Swap out texture handles for the current frame. https://files.facepunch.com/layla/1b0711b1/sbox-dev_rCZwXFIzD1.mp4 Make Texture.Animation a class not a struct Add super simple ui test that shows an animated image Remove texture animation from list when texture isn't being used anymore Make sure frame texture strong handles are destroyed ImageAnimation -> AnimatedImages Default 100 ms frame time when not frame timings available