GetFlexibleHeight() public static méthode

Returns the flexible height of the layout element.

public static GetFlexibleHeight ( RectTransform rect ) : float
rect RectTransform The RectTransform of the layout element to query.
Résultat float
 /// <summary>
 ///   <para>Returns the flexible size of the layout element.</para>
 /// </summary>
 /// <param name="rect">The RectTransform of the layout element to query.</param>
 /// <param name="axis">The axis to query. This can be 0 or 1.</param>
 public static float GetFlexibleSize(RectTransform rect, int axis)
 {
     if (axis == 0)
     {
         return(LayoutUtility.GetFlexibleWidth(rect));
     }
     return(LayoutUtility.GetFlexibleHeight(rect));
 }
        public static float GetFlexibleSize(RectTransform rect, int axis)
        {
            float result;

            if (axis == 0)
            {
                result = LayoutUtility.GetFlexibleWidth(rect);
            }
            else
            {
                result = LayoutUtility.GetFlexibleHeight(rect);
            }
            return(result);
        }