Version: 2023.2
언어: 한국어

RectTransformUtility.CalculateRelativeRectTransformBounds

매뉴얼로 전환
public static Bounds CalculateRelativeRectTransformBounds (Transform root, Transform child);
public static Bounds CalculateRelativeRectTransformBounds (Transform trans);

파라미터

root The Transform to use when converting from world to local space.
child The parent Transform object whose RectTransform children will be encapsulated.
trans The Transfdorm to both search for RectTransform children and convert into world to local space.

반환

Bounds A Bounds object representing the encapsulated bounds in local space relative to the root Transform.

설명

Creates a Bounds object that encapsulates all the child RectTransform objects found in the child parameter, and converts the resulting bounds into local space relative to the root transform.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961