Version: 2019.1 (switch to 2018.3 or 2017.4)
LanguageEnglish
  • C#

RawImage.SetNativeSize

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.

Did you find this page useful? Please give it a rating: