StretchToScreenSize.Stretch


Declaration

public void Stretch()

Description

Stretches the RectTransform to match the screen size.


Overload

Declaration

public void Stretch(bool stretchWidth, bool stretchHeight)

Description

Stretches the RectTransform to match the screen size.

Parameters

stretchWidthWhether to stretch the width.
stretchHeightWhether to stretch the height.