UnityEngine.RectTransformUtility.CalculateRelativeRectTransformBounds C# (CSharp) Method

CalculateRelativeRectTransformBounds() public static method

public static CalculateRelativeRectTransformBounds ( Transform trans ) : Bounds
trans Transform
return Bounds
        public static Bounds CalculateRelativeRectTransformBounds(Transform trans)
        {
            return CalculateRelativeRectTransformBounds(trans, trans);
        }

Same methods

RectTransformUtility::CalculateRelativeRectTransformBounds ( Transform root, Transform child ) : Bounds

Usage Example

コード例 #1
0
 public static Bounds CalculateRelativeRectTransformBounds(Transform trans)
 {
     return(RectTransformUtility.CalculateRelativeRectTransformBounds(trans, trans));
 }