Version: 2017.2

RawImage.SetNativeSize

Switch to Manual
public void SetNativeSize ();

Description

Adjusts the raw image size to make it pixel-perfect.

This means setting the RawImage's RectTransform.sizeDelta to be equal to the Texture dimensions.