Version: 2023.1
言語: 日本語

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.