spriteSourceSize

Deprecated

Use virtFrame

Replace with

if (virtFrame == null) frame else Rect(virtFrame.x, virtFrame.y, frame.w, frame.h)