public override void SetNativeSize()
{
Texture mainTexture = this.mainTexture;
if (mainTexture != null)
{
int num = Mathf.RoundToInt(mainTexture.width * this.uvRect.width);
int num2 = Mathf.RoundToInt(mainTexture.height * this.uvRect.height);
base.rectTransform.anchorMax = base.rectTransform.anchorMin;
base.rectTransform.sizeDelta = new Vector2((float) num, (float) num2);
}
}