RectTransformExtensions.SetTop

Extension Method in RectTransformExtensions

Declaration

public static void SetTop(this RectTransform rect, float top)

Description

Sets the top offset of the rect transform to the given value.

Parameters

rectThe rect transform to update.
topThe top offset value to set.