RectTransformExtensions.SetWidth

Extension Method in RectTransformExtensions

Declaration

public static void SetWidth(this RectTransform rect, float width)

Description

Sets the width of the rect transform to the given value.

Parameters

rectThe rect transform to update.
widthThe width value to set.