I cannot understand the relationship between untrimmedSize and rect, and the effect of them.
Whatever i set those two params, i cann’t map small texture to bigger sprite.The look is not I want.
I set rect as the work frame of the texture, untrimmedSize is the sprite size, the texture is full in the sprite, but the result is not that.
what the meaning of those params? And how to realize that？
m_obOffsetPosition.x = relativeOffset.x + (m_obContentSize.width - m_obRect.size.width) / 2;
m_obOffsetPosition.y = relativeOffset.y + (m_obContentSize.height - m_obRect.size.height) / 2;
why [m_obContentSize.width - m_obRect.size.width]?