public static class UISpriteExtension { public static void CopySpriteParameters(this UISprite dst, UISprite src) { dst.type = src.type; dst.flip = src.flip; dst.border = src.border; dst.centerType = src.centerType; dst.fillDirection = src.fillDirection; dst.fillAmount = src.fillAmount; dst.invert = src.invert; dst.leftType = src.leftType; dst.rightType = src.rightType; dst.topType = src.topType; dst.bottomType = src.bottomType; dst.atlas = src.atlas; dst.spriteName = src.spriteName; } }