I believe this could be marked up as a small bug or is it as expected?
gui.set_size_mode(self.icon, gui.SIZE_MODE_AUTO)
gui.play_flipbook(self.icon, icon_hash)
local size = gui.get_size(self.icon)
print("orig size:",size)
Above will give the correct result of the flipbook anim which in my case is vector3(140,140,0)
gui.play_flipbook(self.icon, icon_hash)
gui.set_size_mode(self.icon, gui.SIZE_MODE_AUTO)
local size = gui.get_size(self.icon)
print("orig size:",size)
This on the other hand gives me the size of the full atlas vmath.vector3(4096, 2048, 0) (expected same result as previous).
Just a headscratcher.