StretchToScreenSize

Class in Zigurous.UI

Declaration

public sealed class StretchToScreenSize : MonoBehaviour

Description

Stretches a UI element to the screen size.

Properties

rectTransformThe RectTransform component of the object.
stretchWidthStretches the width of the RectTransform to match the screen width.
stretchHeightStretches the height of the RectTransform to match the screen height.

Methods

StretchStretches the RectTransform to match the screen size.